public bool Equals(StoreData other)
 {
     return(this.storeName.Equals(other.storeName) & this.founder.Equals(other.founder));
 }
Exemple #2
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));
 }