public SimulatorDelay(SimulatorClock clock, TimeSpan delay) { _delay = delay; var now = clock.UtcNow(); Expiration = now + delay; }
public SimulatorStopwatch(SimulatorClock clock) { _clock = clock; _elapsed = TimeSpan.Zero; }
void EnsureSimulator() { _clock = _clock ?? new SimulatorClock(); }