public virtual Func <ShoppingBasket, DiscountOfProducts> GetFunction()
 {
     return(discountCalculator.GetFunction());
 }
Esempio n. 2
0
 public DiscountCalculator(IDiscountCalculator calc)
 {
     this.F = new Func <ShoppingBasket, DiscountOfProducts>(calc.GetFunction());
 }