Esempio n. 1
0
 public override IPaymanentOrderProcessing GetBusinessProcessingRule(RuleEngineType ruleEngine, object inputs)
 {
     if (ruleEngine.Equals(RuleEngineType.NewMembership))
     {
         return(new NewMembShipBusinessRule(inputs));
     }
     else if (ruleEngine.Equals(RuleEngineType.UpgradeMembership))
     {
         return(new UpgradeMembBusinessRule(inputs));
     }
     else
     {
         return(null);
     }
 }
Esempio n. 2
0
 public override IPaymanentOrderProcessing GetBusinessProcessingRule(RuleEngineType ruleEngine, object inputs)
 {
     if (ruleEngine.Equals(RuleEngineType.GeneratePackSlip))
     {
         return(new PackSlipBusinessRule(inputs));
     }
     else if (ruleEngine.Equals(RuleEngineType.GenerateDuplicatePackSlip))
     {
         return(new DuplicatePackSlipBusinessRule(inputs));
     }
     else
     {
         return(null);
     }
 }
Esempio n. 3
0
 public override IPaymanentOrderProcessing GetBusinessProcessingRule(RuleEngineType ruleEngine, object inputs)
 {
     if (ruleEngine.Equals(RuleEngineType.LearningToSki))
     {
         return(new LearningToSkiBusinessRule(inputs));
     }
     else
     {
         return(null);
     }
 }