public void ResumeTest() { int workflowId = 41; var instanceId = Helper.StartWorkflowAsync(workflowId); try { Thread.Sleep(500); var workflow = Helper.GetWorkflow(workflowId); Assert.IsFalse(workflow.IsPaused); Helper.SuspendWorkflow(workflowId, instanceId); Thread.Sleep(500); workflow = Helper.GetWorkflow(workflowId); Assert.IsTrue(workflow.IsPaused); Helper.ResumeWorkflow(workflowId, instanceId); Thread.Sleep(500); workflow = Helper.GetWorkflow(workflowId); Assert.IsFalse(workflow.IsPaused); Assert.IsTrue(workflow.IsRunning); } finally { Helper.StopWorkflow(workflowId, instanceId); } }