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();
     CatchExceptionInEstablishContext = true;
     NotificationReporter.Report("Message");
 }