public RetirementService(IRulesRepository repository)
        {
            var rules = repository.GetRules("RetirementEligibility.json");

            _engine = new RulesEngine.RulesEngine(rules, null);
        }
示例#2
0
        public DiscountService(IRulesRepository repository)
        {
            var rules = repository.GetRules("Discount.json");

            _engine = new RulesEngine.RulesEngine(rules, null);
        }