public override RuleBase Build(CoverageRulesContainer request)
        {
            CoverageAFact = GetCoverage(request, CoverageAMnemonic);
            CoverageBFact = GetCoverage(request, CoverageBMnemonic);

            return this;
        }
Exemplo n.º 2
0
 public override RuleBase Build(CoverageRulesContainer request)
 {
     rules = new List<RuleBase>();
     foreach (var coverageMnemonic in coverageMnemonics)
     {
         var rule = new CoverageIsNotCarried().SetCoverage(coverageMnemonic).Build(request);
         rules.Add(rule);
     }
     return this;
 }
 public override RuleBase Build(CoverageRulesContainer request)
 {
     coverageFact = GetCoverage(request, coverageMnemonic);
     return this;
 }
Exemplo n.º 4
0
 protected Model.Coverage GetCoverage(CoverageRulesContainer request, string mnemonic)
 {
     //This is where the work really comes in.  At this point we have just the metadata for the rule.
     //The effort here is to get the Coverage and the selected value and all the quirkds associated with taht.
     return request.Request.PolicyCoverages.First(c => c.CoverageMnemonic == mnemonic);
 }
Exemplo n.º 5
0
 public abstract RuleBase Build(CoverageRulesContainer request);