Example #1
0
        public void Ignores_when_null_workflow_action_is_returned_during_completion()
        {
            var workflow  = new WorkflowToReturnNullActionOnClosing();
            var decisions = new[] { new CompleteWorkflowDecision("result2", true) };

            _workflowEvents.Setup(w => w.NewEvents()).Returns(Events(decisions));

            var workflowDecisions = workflow.Decisions(_workflowEvents.Object);

            Assert.That(workflowDecisions, Is.Empty);
        }
Example #2
0
        public void Ignores_when_null_workflow_action_is_returned_during_completion()
        {
            var workflow = new WorkflowToReturnNullActionOnClosing();

            _workflowEvents.Setup(w => w.InterpretNewEventsFor(workflow)).Returns(new WorkflowDecision[]
            {
                new CompleteWorkflowDecision("result2", true),
            });

            var workflowDecisions = workflow.NewExecutionFor(_workflowEvents.Object).Execute();

            Assert.That(workflowDecisions, Is.Empty);
        }