40 references to _timeProvider
Microsoft.AspNetCore.Authentication.Test (40)
CookieTests.cs (40)
193
o.TimeProvider =
_timeProvider
;
208
_timeProvider
.Advance(TimeSpan.FromDays(60));
228
o.TimeProvider =
_timeProvider
;
243
_timeProvider
.Advance(TimeSpan.FromDays(60));
451
_timeProvider
.Advance(TimeSpan.FromMinutes(7));
455
_timeProvider
.Advance(TimeSpan.FromMinutes(7));
478
new AuthenticationProperties() { ExpiresUtc =
_timeProvider
.GetUtcNow().Add(TimeSpan.FromMinutes(5)) }));
485
_timeProvider
.Advance(TimeSpan.FromMinutes(3));
489
_timeProvider
.Advance(TimeSpan.FromMinutes(3));
523
_timeProvider
.Advance(TimeSpan.FromMinutes(11));
623
_timeProvider
.Advance(TimeSpan.FromMinutes(5));
629
_timeProvider
.Advance(TimeSpan.FromMinutes(6));
635
_timeProvider
.Advance(TimeSpan.FromMinutes(5));
744
_timeProvider
.Advance(TimeSpan.FromMinutes(5));
750
_timeProvider
.Advance(TimeSpan.FromMinutes(6));
756
_timeProvider
.Advance(TimeSpan.FromMinutes(11));
800
_timeProvider
.Advance(TimeSpan.FromMinutes(5));
806
_timeProvider
.Advance(TimeSpan.FromMinutes(6));
812
_timeProvider
.Advance(TimeSpan.FromMinutes(11));
843
ctx.Properties.IssuedUtc =
_timeProvider
.GetUtcNow();
859
_timeProvider
.Advance(TimeSpan.FromMinutes(1));
865
_timeProvider
.Advance(TimeSpan.FromMinutes(1));
871
_timeProvider
.Advance(TimeSpan.FromMinutes(9));
905
_timeProvider
.Advance(TimeSpan.FromMinutes(5));
911
_timeProvider
.Advance(TimeSpan.FromMinutes(6));
917
_timeProvider
.Advance(TimeSpan.FromMinutes(5));
963
_timeProvider
.Advance(TimeSpan.FromMinutes(1));
969
_timeProvider
.Advance(TimeSpan.FromMinutes(2));
990
context.Properties.ExpiresUtc =
_timeProvider
.GetUtcNow().Add(TimeSpan.FromMinutes(5));
1004
_timeProvider
.Advance(TimeSpan.FromMinutes(3));
1010
_timeProvider
.Advance(TimeSpan.FromMinutes(3));
1034
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1040
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1047
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1080
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1086
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1093
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1128
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1134
_timeProvider
.Advance(TimeSpan.FromMinutes(4));
1798
o.TimeProvider =
_timeProvider
;