public void ShouldRetryTwice() { _operation = new OperationThatFailsNTimes(3); _workflow.Do(_operation).Retry().Twice(); _workflow.Start(); _operation.ExecuteCount.ShouldBe(3); }
public void Given() { _operation = new OperationThatFailsNTimes(); _workflow = Workflow <string> .Definition() as IWorkflow <string>; }
public void Given() { _operation = new OperationThatFailsNTimes(); _workflow = Workflow<string>.Definition() as IWorkflow<string>; }