8 references to StringToDateTime
Microsoft.AspNetCore.DataProtection.Extensions.Tests (8)
TimeLimitedDataProtectorTests.cs (8)
23
DateTimeOffset expiration =
StringToDateTime
("2000-01-01 00:00:00Z");
46
DateTimeOffset expiration =
StringToDateTime
("2000-01-01 00:00:00Z");
69
DateTimeOffset expectedExpiration =
StringToDateTime
("2000-01-01 00:00:00Z");
70
DateTimeOffset now =
StringToDateTime
("1999-01-01 00:00:00Z");
93
DateTimeOffset expectedExpiration =
StringToDateTime
("2000-01-01 00:00:00Z");
94
DateTimeOffset now =
StringToDateTime
("2001-01-01 00:00:00Z");
157
var expectedExpiration =
StringToDateTime
("2020-01-01 00:00:00Z");
166
timeLimitedProtector.UnprotectCore(timeLimitedProtectedPayload,
StringToDateTime
("2010-01-01 00:00:00Z"), out var actualExpiration));