예제 #1
0
        public void executes_each_rule()
        {
            theStep.Execute(theContext);

            r1.AssertWasCalled(x => x.Validate(theContext));
            r2.AssertWasCalled(x => x.Validate(theContext));
        }
예제 #2
0
        public void executes_each_step()
        {
            thePlan.Execute(theContext);

            r1.AssertWasCalled(x => x.Validate(theContext));
            r2.AssertWasCalled(x => x.Validate(theContext));
        }
예제 #3
0
        public void It_Runs_Each_Of_The_Rules()
        {
            engine.RunAllRules();

            rule1.AssertWasCalled(r => r.Run(mappingSet));
            rule2.AssertWasCalled(r => r.Run(mappingSet));
        }