19 references to FakeTimeProvider
Aspire.Hosting.Tests (1)
Health\ResourceHealthCheckServiceTests.cs (1)
136var timeProvider = new FakeTimeProvider(DateTimeOffset.Now);
Microsoft.AspNetCore.Authentication.Test (1)
CertificateTests.cs (1)
693var timeProvider = new FakeTimeProvider(TimeProvider.System.GetUtcNow());
Microsoft.Extensions.Diagnostics.Testing.Tests (9)
Metrics\MetricCollectorTests.cs (9)
47var timeProvider = new FakeTimeProvider(now); 93var timeProvider = new FakeTimeProvider(now); 138var timeProvider = new FakeTimeProvider(now); 187var timeProvider = new FakeTimeProvider(now); 240var timeProvider = new FakeTimeProvider(now); 278var timeProvider = new FakeTimeProvider(now); 304var timeProvider = new FakeTimeProvider(now); 351var timeProvider = new FakeTimeProvider(now); 389var timeProvider = new FakeTimeProvider(now);
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggerTest.cs (1)
842var fakeTimeProvider = new FakeTimeProvider(DateTimeOffset.UtcNow);
Microsoft.Extensions.TimeProvider.Testing.Tests (7)
FakeTimeProviderTests.cs (5)
47var timeProvider = new FakeTimeProvider(new DateTimeOffset(2001, 2, 3, 4, 5, 6, TimeSpan.Zero)); 106var timeProvider = new FakeTimeProvider(new DateTimeOffset(2001, 2, 3, 4, 5, 6, TimeSpan.Zero)); 130var timeProvider = new FakeTimeProvider(new DateTimeOffset(2001, 2, 3, 4, 5, 6, TimeSpan.Zero)); 219var timeProvider = new FakeTimeProvider(dto); 359var timeProvider = new FakeTimeProvider(DateTimeOffset.UtcNow)
TimerTests.cs (2)
278var timeProvider = new FakeTimeProvider(DateTimeOffset.UtcNow); 301var timeProvider = new FakeTimeProvider(DateTimeOffset.UtcNow);