public DiscountPipeline(Bill bill, Customer customer)
 {
     _percentageDiscounters = new List<IDiscounter>();
     this.Bill = bill;
     this.Customer = customer;
     LoadPercentageDiscounters();
 }
Example #2
0
 public Bill(Customer forCustomer)
 {
     _productLineItems = new List<ProductLineItem>();
     _discountLineItems = new List<DiscountLineItem>();
     Customer = forCustomer;
     _discountPipeLine = new DiscountPipeline(this, forCustomer);
 }
Example #3
0
 public BilledTotalDiscounter(Bill bill, Customer customer,List<DiscountLineItem> existingDiscounts)
     : base(bill, customer)
 {
     _existingDiscounts = existingDiscounts;
 }
Example #4
0
 public AffiliateDiscounter(Bill bill, Customer customer)
     : base(bill, customer)
 {
 }
Example #5
0
 public LoyaltyDiscounter(Bill bill, Customer customer)
     : base(bill, customer)
 {
 }
Example #6
0
 public EmployeeDiscounter(Bill bill, Customer customer)
     : base(bill, customer)
 {
 }
Example #7
0
 public Discounter(Bill bill, Customer customer)
 {
     this.Bill = bill;
     this.Customer = customer;
 }