12 references to Clock
Microsoft.Extensions.Caching.Hybrid.Tests (12)
DistributedCacheTests.cs (11)
45Clock.Reset(); 47services.AddSingleton<TimeProvider>(Clock); 48services.AddSingleton<ISystemClock>(Clock); 82Clock.Add(TimeSpan.FromMinutes(4)); 87Clock.Add(TimeSpan.FromMinutes(2)); 128Clock.Add(TimeSpan.FromMinutes(4)); 133Clock.Add(TimeSpan.FromMinutes(2)); 196Clock.Add(TimeSpan.FromMinutes(4)); 201Clock.Add(TimeSpan.FromMinutes(2)); 258Clock.Add(TimeSpan.FromMinutes(4)); 263Clock.Add(TimeSpan.FromMinutes(2));
SqlServerTests.cs (1)
42options.SystemClock = Clock;