Пример #1
0
        public async Task Test03()
        {
            var workflow          = new ForkEagerJoinWorkflow(false);
            var workflowBlueprint = WorkflowBuilder.Build(workflow);
            var workflowResult    = await WorkflowStarter.StartWorkflowAsync(workflowBlueprint);

            var workflowInstance = workflowResult.WorkflowInstance !;

            Assert.Equal(2, workflowInstance.BlockingActivities.Count);
        }
Пример #2
0
        public async Task Test04()
        {
            var workflow          = new ForkEagerJoinWorkflow(true);
            var workflowBlueprint = WorkflowBuilder.Build(workflow);
            var workflowResult    = await WorkflowStarter.StartWorkflowAsync(workflowBlueprint);

            var workflowInstance = workflowResult.WorkflowInstance !;

            Assert.Single(workflowInstance.BlockingActivities);
        }