예제 #1
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     TimeServiceMock.Setup(s => s.UtcTime).Returns(StartTime);
     NotificationReporter.Report(Message, ShortDescription, LongDescription);
     Notification = NotificationReporter.Notifications.SingleOrDefault();
 }
예제 #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");
 }
예제 #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();
 }
예제 #4
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     CatchExceptionInEstablishContext = true;
     NotificationReporter.Report("Message");
 }