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