Skip to content

Repository files navigation

Build statusBuild status

NuGet VersionNuGet Version

Maintainability RatingCoverage

WorkflowValidation

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

Using Extensions and Tools

usingstaticWorkflowValidation.Tools.WorkflowTools;StartWith("Start step", c =>{}).Then("Continue with step 2", c =>{}).Then("And do step 3", c =>{}).Run();

The more complex way

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

About

Test Workflows in BDD style

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages