[This is preliminary documentation and is subject to change.]
Builder for FakeDateTimeZoneSource, allowing the built object to
be immutable, but constructed via object/collection initializers.

C# | Visual Basic | Visual C++ |
public sealed class Builder : IEnumerable<DateTimeZone>, IEnumerable
Public NotInheritable Class Builder _ Implements IEnumerable(Of DateTimeZone), IEnumerable
public ref class Builder sealed : IEnumerable<DateTimeZone^>, IEnumerable

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | FakeDateTimeZoneSource..::..Builder()()()() |
Creates a new builder.
|
![]() | Add(DateTimeZone) |
Adds a time zone to the builder.
|
![]() | BclIdsToZoneIds |
The dictionary mapping BCL TimeZoneInfo IDs to the canonical IDs
served within the provider being built.
|
![]() | Build()()()() |
Builds a time zone source from this builder. The returned
builder will be independent of this builder; further changes
to this builder will not be reflected in the returned source.
|
![]() | GetEnumerator()()()() |
Returns the zones within the builder. This mostly exists
to enable collection initializers.
|
![]() | VersionId |
The version ID to advertise; defaults to "TestZones".
|
![]() | Zones |
List of zones, exposed as a property for use when a test needs to set properties as
well as adding zones.
|

Object | |
![]() | FakeDateTimeZoneSource..::..Builder |
Assembly: NodaTime.Testing (Module: NodaTime.Testing.dll) Version: 1.2.0.0 (1.2.0)