Пример #1
0
        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);
        }
Пример #2
0
 void IDepartmentRule.Execute(BypassSheet bypassSheet)
 {
     if (bypassSheet.Contains(_containingStamp))
     {
         _successAction.Execute(bypassSheet);
     }
     else
     {
         _failureAction.Execute(bypassSheet);
     }
 }
Пример #3
0
 void IDepartmentRule.Execute(BypassSheet bypassSheet)
 {
     _action.Execute(bypassSheet);
 }