コード例 #1
0
 public TestContext(string contextName, TestClock clock, TestScheduler scheduler)
     : base(contextName, new DefaultMetricsRegistry(), new TestMetricsBuilder(clock, scheduler), () => clock.UTCDateTime)
 {
     Clock     = clock;
     Scheduler = scheduler;
 }
コード例 #2
0
 private TestContext(string contextName, TestClock clock)
     : this(contextName, clock, new TestScheduler(clock))
 {
 }
コード例 #3
0
 public TestScheduler(TestClock clock)
 {
     _clock           = clock;
     _clock.Advanced += (s, l) => RunIfNeeded();
 }