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)); }
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)); }