5 writes to _now
Microsoft.Extensions.TimeProvider.Testing (5)
FakeTimeProvider.cs (5)
47_now = startDateTime; 81_now += _autoAdvanceAmount; 108_now = value; 131_now += delta; 151_now = value;
12 references to _now
Microsoft.Extensions.TimeProvider.Testing (12)
FakeTimeProvider.cs (12)
33Start = _now; 48Start = _now; 80result = _now; 103if (value < _now) 105Throw.ArgumentOutOfRangeException(nameof(value), $"Cannot go back in time. Current time is {_now}."); 150var delta = value - _now; 200public override string ToString() => _now.ToString("yyyy-MM-ddTHH:mm:ss.fff", CultureInfo.InvariantCulture); 222waiter.ScheduledOn = _now.Ticks; 223waiter.WakeupTime = _now.Ticks + dueTime; 248if (waiter.WakeupTime > _now.Ticks) 282var oldTicks = _now.Ticks; 287var newTicks = _now.Ticks;