Esempio n. 1
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     TimerService.Raise(t => t.Elapsed += null, EventArgs.Empty);
 }
Esempio n. 2
0
 public void Test()
 {
     Target.Verify(t => t.Run(), Times.Never());
     TimerService.Raise(s => s.Elapsed += null, EventArgs.Empty);
     Target.Verify(t => t.Run(), Times.Once());
 }