コード例 #1
0
        public void Jumping_out_to_different_parent_branch_is_not_allowed()
        {
            _builder.AddNewEvents(CompletedActivityGraph(SiblingActivityName, Version));
            var workflow = new WorkflowToJumpToDifferentBranch();

            Assert.Throws <OutOfBranchJumpException>(() => workflow.Decisions(_builder.Result()));
        }
コード例 #2
0
        public void Jumping_out_to_different_parent_branch_is_not_allowed()
        {
            var siblingActivity = CompletedActivityGraph(SiblingActivityName);
            var workflow        = new WorkflowToJumpToDifferentBranch();
            var historyEvents   = new WorkflowHistoryEvents(siblingActivity, siblingActivity.Last().EventId, siblingActivity.First().EventId);

            Assert.Throws <OutOfBranchJumpException>(() => workflow.NewExecutionFor(historyEvents).Execute());
        }