コード例 #1
0
        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())));
        }
コード例 #2
0
        private WorkflowHistoryEvents CreateTimerCancellationFailedEventGraph()
        {
            var timerCancellationFailedEventGraph = _builder.TimerCancellationFailedGraph(Identity.Timer("timer"), "cause");

            return(new WorkflowHistoryEvents(timerCancellationFailedEventGraph));
        }