Ejemplo n.º 1
0
 public void TestInitialize()
 {
     _client    = Substitute.For <IBingMapsClient>();
     _processor = new LocalTimeProcessor(
         _client,
         () => TZConvert.GetTimeZoneInfo("FLE Standard Time"),
         () => new DateTime(2018, 1, 1, 1, 0, 0, DateTimeKind.Utc));
 }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="LocalTimeProcessor"/> class.</summary>
 public LocalTimeProcessor(
     IBingMapsClient client,
     Func <TimeZoneInfo> currentTimeZoneFactory,
     Func <DateTime> dateTimeFactory)
 {
     _client = client;
     _currentTimeZoneFactory = currentTimeZoneFactory;
     _dateTimeFactory        = dateTimeFactory;
 }