Run Workflows step by step with inegrated Test Assertions. Test Workflows in BDD style.
Workflow.StartWith("Start step", c =>{}).Then("Continue with step 2", c =>{}).Then("And do step 3", c =>{}).Run();usingstaticWorkflowValidation.Tools.WorkflowTools;StartWith("Start step", c =>{}).Then("Continue with step 2", c =>{}).Then("And do step 3", c =>{}).Run();usingstaticWorkflowValidation.Tools.VerificationTools;usingstaticWorkflowValidation.Tools.StepTools;usingstaticWorkflowValidation.Tools.WorkflowTools;Workflow<MyCustomContextType>(ctx =>StartWith(()=>{SetStep(b =>b.SetName("Start Step").Step(()=>{ctx.Message="Workflow is started";}));Verify(b =>b.SetName("Verify something").Assert(()=>!string.IsNullOrEmpty(ctx.Message)));SetStep(b =>b.SetName("End Step").Step(()=>{ctx.Message="Workflow is ended";}));}).Then(()=>{})).Run();publicclassMyCustomContextType{publicstringMessage{get;set;}}