public List <TypeOfActionAgainstRule> ExcuteRule(TypeOfRuleEnum rule)
        {
            var video             = new VideoRule(null, rule);
            var newMemberShip     = new NewMemberShip(video, rule);
            var upgradeMemberShip = new UpgradeMemberShip(newMemberShip, rule);
            var book      = new BookRule(upgradeMemberShip, rule);
            var ruleChain = new PhysicalProductRule(book, rule);

            return(ruleChain.VerifyRuleAndProcess());
        }
Ejemplo n.º 2
0
 public ProcessOrder(ProcessOrder nextRule, TypeOfRuleEnum typeOfRule)
 {
     TypeofProduct = typeOfRule;
     NextRule      = nextRule;
 }
Ejemplo n.º 3
0
 public UpgradeMemberShip(ProcessOrder processOrder, TypeOfRuleEnum typeOfRule) : base(processOrder, typeOfRule)
 {
 }
 public VideoRule(ProcessOrder processOrder, TypeOfRuleEnum typeOfRule) : base(processOrder, typeOfRule)
 {
 }
Ejemplo n.º 5
0
 internal BookRule(ProcessOrder processOrder, TypeOfRuleEnum typeOfRule) : base(processOrder, typeOfRule)
 {
 }
 internal PhysicalProductRule(ProcessOrder processOrder, TypeOfRuleEnum typeOfRule) : base(processOrder, typeOfRule)
 {
 }