Пример #1
0
 public BasketItem(GoodsItem goodsItem, IDiscount discount)
 {
     this._goodsItem = goodsItem;
     this._discount  = discount;
 }
Пример #2
0
 public BasketItem(GoodsItem goodsItem)
 {
     this._goodsItem = goodsItem;
     this._discount  = new NoDiscount();
 }