Having a TimeZone as an instance property of AtataContext is wrong, as time zone should be the same for all the contexts, thus it should not be configured within regular AtataContext configuration, which can be different for tests.
Such global properties starting v3 are now located in AtataContext.GlobalProperties.
AtataContext.GlobalProperties time zone related members:
/// <summary>
/// Gets or sets the time zone.
/// The default value is <see cref="TimeZoneInfo.Local"/>.
/// </summary>
public TimeZoneInfo TimeZone { get; set; }
/// <summary>
/// Sets the UTC time zone.
/// </summary>
/// <returns>The same <see cref="AtataContextGlobalProperties"/> instance.</returns>
public AtataContextGlobalProperties UseUtcTimeZone();
/// <summary>
/// Sets the time zone by identifier, which corresponds to the <see cref="TimeZoneInfo.Id"/> property.
/// </summary>
/// <param name="timeZoneId">The time zone identifier.</param>
/// <returns>The same <see cref="AtataContextGlobalProperties"/> instance.</returns>
public AtataContextGlobalProperties UseTimeZone(string timeZoneId);
/// <summary>
/// Sets the time zone.
/// </summary>
/// <param name="timeZone">The time zone.</param>
/// <returns>The same <see cref="AtataContextGlobalProperties"/> instance.</returns>
public AtataContextGlobalProperties UseTimeZone(TimeZoneInfo timeZone);
Old AtataContextBuilder time zone configurational methods are marked as obsolete.
Having a
TimeZoneas an instance property ofAtataContextis wrong, as time zone should be the same for all the contexts, thus it should not be configured within regularAtataContextconfiguration, which can be different for tests.Such global properties starting v3 are now located in
AtataContext.GlobalProperties.AtataContext.GlobalPropertiestime zone related members:Old
AtataContextBuildertime zone configurational methods are marked as obsolete.