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