コード例 #1
0
        public void Can_interpret_workflow_cancel_request_failed_event()
        {
            _workflow.Setup(w => w.OnWorkflowCancelRequestFailed(It.IsAny <WorkflowCancelRequestFailedEvent>())).Returns(_interpretedWorkflowAction);
            var historyEvents = new WorkflowHistoryEvents(new[] { _builder.WorkflowCancelRequestFailedEvent("cause") });

            var workflowDecisions = historyEvents.InterpretNewEventsFor(_workflow.Object);

            Assert.That(workflowDecisions, Is.EqualTo(new[] { _expectedWorkflowDecision }));
        }
コード例 #2
0
        public void Setup()
        {
            _builder = new HistoryEventsBuilder();

            _cancelRequestFailedEvent = new WorkflowCancelRequestFailedEvent(_builder.WorkflowCancelRequestFailedEvent("cause"));
        }