29 references to StringToDateTime
Microsoft.AspNetCore.DataProtection.Tests (29)
KeyManagement\KeyRingProviderTests.cs (29)
24var now = StringToDateTime("2015-03-01 00:00:00Z"); 62var now = StringToDateTime("2016-02-29 20:00:00Z"); 91Assert.Equal(StringToDateTime("2016-03-01 00:00:00Z"), cacheableKeyRing.ExpirationTimeUtc); 106var now = StringToDateTime("2015-03-01 00:00:00Z"); 154var now = (DateTimeOffset)StringToDateTime("2015-03-01 00:00:00Z"); 197var now = StringToDateTime("2015-03-01 00:00:00Z"); 243var now = StringToDateTime("2015-03-01 00:00:00Z"); 279var now = StringToDateTime("2016-02-01 00:00:00Z"); 328var now = StringToDateTime("2016-02-01 00:00:00Z"); 366var now = StringToDateTime("2016-02-01 00:00:00Z"); 429DateTimeOffset now = StringToDateTime("2016-02-01 00:00:00Z"); 522DateTimeOffset now = StringToDateTime("2016-02-01 00:00:00Z"); 576var now = StringToDateTime("2015-03-01 00:00:00Z"); 583expirationTime: StringToDateTime("2015-03-02 00:00:00Z"), 602var now = StringToDateTime("2015-03-01 00:00:00Z"); 610expirationTime: StringToDateTime("2015-03-01 00:30:00Z"), // expire in half an hour 616expirationTime: StringToDateTime("2015-03-01 00:30:00Z"), // expire in half an hour 622expirationTime: StringToDateTime("2015-03-02 00:00:00Z"), 643var now = StringToDateTime("2015-03-01 00:00:00Z"); 651expirationTime: StringToDateTime("2015-03-01 00:30:00Z"), // expire in half an hour 657expirationTime: StringToDateTime("2015-03-02 00:00:00Z"), 676var now = StringToDateTime("2015-03-01 00:00:00Z"); 702expirationTime: StringToDateTime("2015-03-02 00:00:00Z"), 730var originalKeyRingTime = StringToDateTime("2015-03-01 00:00:00Z"); 732.Returns(new CacheableKeyRing(cts.Token, StringToDateTime("2015-03-02 00:00:00Z"), originalKeyRing)); 733var throwKeyRingTime = StringToDateTime("2015-03-01 12:00:00Z"); 736var updatedKeyRingTime = StringToDateTime("2015-03-01 12:02:00Z"); 738.Returns(new CacheableKeyRing(CancellationToken.None, StringToDateTime("2015-03-02 00:00:00Z"), updatedKeyRing)); 813var time1 = StringToDateTime("2015-03-01 00:00:00Z");