Exemple #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));
            }
        }
 public bool ActivateMemberShip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
 public bool UppgradeMemberShip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
 public bool SendEmail(PaymentContext context)
 {
     throw new NotImplementedException();
 }
 public bool GeneratePakagingSlip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
 public bool GenerateCommisionPayment(PaymentContext context)
 {
     throw new NotImplementedException();
 }
 public bool DuplicatePackagingSlip(PaymentContext context)
 {
     throw new NotImplementedException();
 }
 public bool AddFirstAidVideo(PaymentContext context)
 {
     throw new NotImplementedException();
 }