Пример #1
0
 public void AddVoucher(Voucherbase voucher)
 {
     if (_vouchers == null)
     {
         this._vouchers = new List <Voucherbase>();
     }
     this._vouchers.Add(voucher);
 }
Пример #2
0
 public Basket(Cart cart, Voucherbase voucher)
 {
     this._cart = cart;
     AddVoucher(voucher);
     _basketTotal = _cart.Total;
 }