Example #1
0
 public ReceiptData(int receiptID, BasketInRecipt basket, double price, MemberData user, StoreData store, DateTime date, iPolicyDiscountData discount, iPolicyData purchasePolicy)
 {
     this.receiptID      = receiptID;
     this.basket         = basket ?? throw new ArgumentNullException(nameof(basket));
     this.price          = price;
     this.user           = user ?? throw new ArgumentNullException(nameof(user));
     this.store          = store ?? throw new ArgumentNullException(nameof(store));
     this.date           = date;
     this.discount       = discount ?? throw new ArgumentNullException(nameof(discount));
     this.purchasePolicy = purchasePolicy ?? throw new ArgumentNullException(nameof(purchasePolicy));
 }
Example #2
0
 //CONSTRUCTORS
 public ReceiptData(int receiptID, BasketInRecipt basket, StoreData store, MemberData user, double price, DateTime date, iPolicyDiscountData discount, iPolicyData purchasePolicy)
 {
     this.receiptID      = receiptID;
     this.basket         = basket;
     this.store          = store;
     this.user           = user;
     this.price          = price;
     this.date           = date;
     this.discount       = discount;
     this.purchasePolicy = purchasePolicy;
 }