Exemplo n.º 1
0
        public void WaitNotifiesExecutionPlanOfWaitState()
        {
            var executionPlan = new Mock<IExecutionPlan>();
            var execution = new Execution("id", "instanceId", Mock.Of<IWorkflowDefinition>(), executionPlan.Object);

            execution.Wait();

            executionPlan.Verify(p => p.OnExecutionReachesWaitState(execution));
        }
Exemplo n.º 2
0
        public void SignalResumesExecution()
        {
            var executionPlan = new Mock<IExecutionPlan>();
            var execution = new Execution("id", "instanceId", Mock.Of<IWorkflowDefinition>(), executionPlan.Object);
            execution.Wait();

            execution.Signal();

            executionPlan.Verify(p => p.OnExecutionSignaled(execution));
        }