public void Execute_should_add_the_fact_to_the_facts_collection() { // arrange var fact = new Fact() { Assertion = "Has a dog" }; _action.SetFact(fact); var facts = new List <Fact>(); // act _action.Execute(facts); // assert Assert.Contains(fact, facts); }
void IDepartmentRule.Execute(BypassSheet bypassSheet) { if (bypassSheet.Contains(_containingStamp)) { _successAction.Execute(bypassSheet); } else { _failureAction.Execute(bypassSheet); } }
void IDepartmentRule.Execute(BypassSheet bypassSheet) { _action.Execute(bypassSheet); }