public void Can_interpret_workflow_signaled_failed_event() { _workflow.Setup(w => w.OnWorkflowSignalFailed(It.IsAny <WorkflowSignalFailedEvent>())).Returns(_interpretedWorkflowAction); var historyEvents = new WorkflowHistoryEvents(new [] { _builder.WorkflowSignalFailedEvent("cause", "wid", "rid") }); var workflowDecisions = historyEvents.InterpretNewEventsFor(_workflow.Object); Assert.That(workflowDecisions, Is.EqualTo(new[] { _expectedWorkflowDecision })); }
public void Setup() { _builder = new HistoryEventsBuilder(); _workflowSignaledEvent = new WorkflowSignalFailedEvent(_builder.WorkflowSignalFailedEvent("cause", "wid", "rid")); }