protected override void EstablishContext() { base.EstablishContext(); TimeServiceMock.Setup(s => s.UtcTime).Returns(StartTime); NotificationReporter.Report(Message, ShortDescription, LongDescription); Notification = NotificationReporter.Notifications.SingleOrDefault(); }
protected override void EstablishContext() { base.EstablishContext(); LaterTime = StartTime.Add(TimeSpan.FromSeconds(1)); TimeServiceMock.Setup(s => s.UtcTime).Returns(LaterTime); NotificationReporter.Report("message", "shortDescription", "longDescription"); }
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(); }
protected override void EstablishContext() { base.EstablishContext(); CatchExceptionInEstablishContext = true; NotificationReporter.Report("Message"); }