Beispiel #1
0
        public void CanExecuteChainedWorkflowsOfDifferentTypeViaFlow()
        {
            var incWorkflow = new GuidCountIncrementWorkflow();
            var dupWorkflow = new GuidCountDuplicateWorkflow();

            var results = new GuidCount().AsFlowable().Flow(incWorkflow).Flow(incWorkflow).Flow(dupWorkflow).Value;

            Assert.Equal(2, results.Count);
            Assert.True(results.All(r => r.Counter == 2));
        }
Beispiel #2
0
        public void WorkflowOfTAssignabletoIWorkflowOfT()
        {
            var workflow = new GuidCountIncrementWorkflow(Substitute.For <IStateRule <GuidCount> >());

            Assert.NotNull(workflow as IWorkflow <GuidCount>);
        }
Beispiel #3
0
        public void CanExecuteChainedWorkflowsOfSameTypeViaFlow()
        {
            var workflow = new GuidCountIncrementWorkflow();

            Assert.Equal(2, new GuidCount().AsFlowable().Flow(workflow).Flow(workflow).Value.Counter);
        }