public void Apply(Calculation calculation)
 {
     rules
         .Where(r => r.Applies(calculation))
         .ForEach(r => r.Apply(calculation));
 }
예제 #2
0
 private void ApplyDiscounts(Calculation calculation)
 {
     DiscountMarkupRules.Apply(calculation);
 }
예제 #3
0
 private void UpdateTotals(Calculation calculation)
 {
     calculation.UpdateTotal();
 }
 public abstract Calculation Apply(Calculation calculation);