Esempio n. 1
0
 public void ShouldRetryTwice()
 {
     _operation = new OperationThatFailsNTimes(3);
     _workflow.Do(_operation).Retry().Twice();
     _workflow.Start();
     _operation.ExecuteCount.ShouldBe(3);
 }
 public void ShouldRetryTwice()
 {
     _operation = new OperationThatFailsNTimes(3);
     _workflow.Do(_operation).Retry().Twice();
     _workflow.Start();
     _operation.ExecuteCount.ShouldBe(3);
 }
Esempio n. 3
0
 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>;
 }