public void Can_return_custom_workflow_action()
        {
            var workflow  = new WorkflowWithCustomAction("result");
            var decisions = workflow.Decisions(_builder.Result());

            Assert.That(decisions, Is.EqualTo(new[] { new CompleteWorkflowDecision("result") }));
        }
        public void Can_return_custom_workflow_action_from_workflow()
        {
            _builder.AddNewEvents(_graphBuilder.TimerCancellationFailedGraph(_id.ScheduleId(), Cause).ToArray());
            var decisions = new WorkflowWithCustomAction("result").Decisions(_builder.Result());

            Assert.That(decisions, Is.EqualTo(new [] { new CompleteWorkflowDecision("result") }));
        }
Exemplo n.º 3
0
        public void Can_return_custom_workflow_action()
        {
            var workflowAction = new Mock <WorkflowAction>().Object;
            var workflow       = new WorkflowWithCustomAction(workflowAction);

            var actualAction = _activityCancelledEvent.Interpret(workflow);

            Assert.That(actualAction, Is.EqualTo(workflowAction));
        }
        public void Can_return_custom_workflow_action()
        {
            var workflowAction = new Mock <WorkflowAction>();
            var workflow       = new WorkflowWithCustomAction(workflowAction.Object);

            var interpretedAction = _activityCompletedEvent.Interpret(workflow);

            Assert.That(interpretedAction, Is.EqualTo(workflowAction.Object));
        }
        public void Can_return_the_custom_action()
        {
            _builder.AddNewEvents(_graphBuilder.TimerStartFailedGraph(_identity.ScheduleId(), "cause").ToArray());
            var workflow = new WorkflowWithCustomAction("result");

            var decisions = workflow.Decisions(_builder.Result());

            Assert.That(decisions, Is.EqualTo(new [] { new CompleteWorkflowDecision("result") }));
        }
Exemplo n.º 6
0
        public void Can_return_the_custom_action()
        {
            var workflowAction = new Mock <WorkflowAction>();
            var workflow       = new WorkflowWithCustomAction(workflowAction.Object);

            var action = _timerStartFailedEvent.Interpret(workflow);

            Assert.That(action, Is.EqualTo(workflowAction.Object));
        }