Noda Time
Show / Hide Table of Contents

Namespace NodaTime.Testing.TimeZones

The NodaTime.Testing.TimeZones namespace provides types to aid testing production code which uses time zones, to avoid hard-coding knowledge of "real" time zones into tests.

Classes

FakeDateTimeZoneSource

A time zone source for test purposes. Create instances via FakeDateTimeZoneSource.Builder.

FakeDateTimeZoneSource.Builder

Builder for FakeDateTimeZoneSource, allowing the built object to be immutable, but constructed via object/collection initializers.

MultiTransitionDateTimeZone

Time zone with multiple transitions, created via a builder.

MultiTransitionDateTimeZone.Builder

Builder to create instances of MultiTransitionDateTimeZone. Each builder can only be built once.

SingleTransitionDateTimeZone

Time zone with a single transition between two offsets. This provides a simple way to test behaviour across a transition.
In this article
Back to top Generated by DocFX