public RuleRepository GetRuleRepository() { this.ruleRepository = new RuleRepository(); LoadXmlDocument("Rules.xml"); LoadRulesFromXML(); return(ruleRepository); }
public ESProvider(FactParser factParser, RuleParser ruleParser) { FactParser = factParser; RuleParser = ruleParser; FactRepository = FactParser.FactRepository; RuleRepository = RuleParser.RuleRepository; Answers = new Dictionary <string, bool>(); errorMessage = "shit happens."; }
public ESProvider(FactParser factParser, RuleParser ruleParser) { factRepo = factParser.GetFactRepository(); ruleRepo = ruleParser.GetRuleRepository(); this.factParser = factParser; this.ruleParser = ruleParser; myenumrule = ruleRepo.GetEnumerator(); myenumfact = factRepo.GetEnumerator(); }
public RuleParser(string path) { RuleRepository = new RuleRepository(); LoadXMLDocument(path); }