public TestContext(string contextName, TestClock clock, TestScheduler scheduler) : base(contextName, new DefaultMetricsRegistry(), new TestMetricsBuilder(clock, scheduler), () => clock.UTCDateTime) { Clock = clock; Scheduler = scheduler; }
private TestContext(string contextName, TestClock clock) : this(contextName, clock, new TestScheduler(clock)) { }
public TestScheduler(TestClock clock) { _clock = clock; _clock.Advanced += (s, l) => RunIfNeeded(); }