Esempio n. 1
0
        public void Execute(PaymentContext context)
        {
            var applicableRules = rules.Where(rule => rule.IsApplicable(context)).ToList();

            if (applicableRules.Any())
            {
                applicableRules.ForEach(rule => rule.Execute(context));
            }
        }
Esempio n. 2
0
 public bool ActivateMemberShip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public bool UppgradeMemberShip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public bool SendEmail(PaymentContext context)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public bool GeneratePakagingSlip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
Esempio n. 6
0
 public bool GenerateCommisionPayment(PaymentContext context)
 {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 public bool DuplicatePackagingSlip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
Esempio n. 8
0
 public bool AddFirstAidVideo(PaymentContext context)
 {
     throw new NotImplementedException();
 }