Пример #1
0
        public void Chaining_And()
        {
            var orChain = ChainHelper.OrChain(new Rule1_True(), new Rule2_False());
            var rule    = new RuleEval();

            rule.Eval(new Rule2_False());
            rule.OrChain(orChain);
            var rslt = rule.Evaluate(new RequestInfo());

            Assert.IsTrue(rslt);
        }