public void Last_event_can_be_timer_cancellation_failed_event() { var eventGraph = _builder.TimerCancellationFailedGraph(_timerIdentity, "cause"); var timerItem = CreateTimerItemFor(eventGraph); var latestEvent = timerItem.LastEvent; Assert.That(latestEvent, Is.EqualTo(new TimerCancellationFailedEvent(eventGraph.First()))); }
private WorkflowHistoryEvents CreateTimerCancellationFailedEventGraph() { var timerCancellationFailedEventGraph = _builder.TimerCancellationFailedGraph(Identity.Timer("timer"), "cause"); return(new WorkflowHistoryEvents(timerCancellationFailedEventGraph)); }