public SuperMarket()
 {
     storage            = new Storage();
     discountRules      = new DiscountRulesRepository();
     discountCalculator = new DiscountCalculator(discountRules);
 }
Ejemplo n.º 2
0
 public DiscountCalculator(IDiscountRulesRepository discountRules)
 {
     this.discountRules = discountRules;
 }