Ejemplo n.º 1
0
 public OrderCalculator(IItemCalculator net, ISurchargeCalculator surcharge)
 {
     _net       = net;
     _surcharge = surcharge;
 }
Ejemplo n.º 2
0
 public OrderCalculator()
 {
     _net       = new ItemCalculator(GetMenu());
     _surcharge = new SurchargeCalculator(GetMenu());
 }