public void executes_each_rule() { theStep.Execute(theContext); r1.AssertWasCalled(x => x.Validate(theContext)); r2.AssertWasCalled(x => x.Validate(theContext)); }
public void executes_each_step() { thePlan.Execute(theContext); r1.AssertWasCalled(x => x.Validate(theContext)); r2.AssertWasCalled(x => x.Validate(theContext)); }
public void It_Runs_Each_Of_The_Rules() { engine.RunAllRules(); rule1.AssertWasCalled(r => r.Run(mappingSet)); rule2.AssertWasCalled(r => r.Run(mappingSet)); }