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(); NotificationReporter.Reset(new Notification(StartTime, Message, ShortDescription, LongDescription) { EndTime = ExpirationTime }); }
protected override void EstablishContext() { base.EstablishContext(); NotificationReporter.Reset(Notification); }
protected override void EstablishContext() { base.EstablishContext(); CatchExceptionInEstablishContext = true; NotificationReporter.Report("Message"); }
public void Test() { NotificationReporter.VerifySet(r => r.ExpirationTime = TimeSpan.FromSeconds(1)); }