Example #1
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     TimeServiceMock.Setup(s => s.UtcTime).Returns(StartTime);
     NotificationReporter.Report(Message, ShortDescription, LongDescription);
     Notification = NotificationReporter.Notifications.SingleOrDefault();
 }
Example #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");
 }
Example #3
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();
 }
Example #4
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     NotificationReporter.Reset(new Notification(StartTime, Message, ShortDescription, LongDescription)
     {
         EndTime = ExpirationTime
     });
 }
Example #5
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     NotificationReporter.Reset(Notification);
 }
Example #6
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     CatchExceptionInEstablishContext = true;
     NotificationReporter.Report("Message");
 }
Example #7
0
 public void Test()
 {
     NotificationReporter.VerifySet(r => r.ExpirationTime = TimeSpan.FromSeconds(1));
 }