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