public void Can_interpret_workflow_failure_failed_event()
        {
            _workflow.Setup(w => w.OnWorkflowFailureFailed(It.IsAny <WorkflowFailureFailedEvent>())).Returns(_interpretedWorkflowAction);
            var historyEvents = new WorkflowHistoryEvents(new[] { _builder.WorkflowFailureFailedEvent("cause") });

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

            Assert.That(workflowDecisions, Is.EqualTo(new[] { _expectedWorkflowDecision }));
        }
        public void Setup()
        {
            _builder = new HistoryEventsBuilder();

            _failedEvent = new WorkflowFailureFailedEvent(_builder.WorkflowFailureFailedEvent("cause"));
        }