Exemplo n.º 1
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     TimeServiceMock.Setup(s => s.UtcTime).Returns(StartTime);
     NotificationReporter.Report(Message, ShortDescription, LongDescription);
     Notification = NotificationReporter.Notifications.SingleOrDefault();
 }
Exemplo n.º 2
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     LaterTime = StartTime.Add(TimeSpan.FromSeconds(1));
     TimeServiceMock.Setup(s => s.UtcTime).Returns(LaterTime);
     NotificationReporter.Report("message", "shortDescription", "longDescription");
 }
Exemplo n.º 3
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     LifeTime = ExpirationTime.Add(NotificationReporter.LifeTime).AddTicks(1);
     TimeServiceMock.Setup(s => s.UtcTime).Returns(LifeTime);
     TimerServiceMock.Raise(s => s.Elapsed += null, EventArgs.Empty);
 }
Exemplo n.º 4
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     TimeServiceMock.Setup(s => s.UtcTime).Returns(StartTime);
     Exception = new Exception("exception message");
     NotificationReporter.Report(Message, Exception);
     Notification = NotificationReporter.Notifications.SingleOrDefault();
 }