示例#1
0
 public SoldBook(BookEdition book, DateTime dateOfSale, int amount, decimal totalPrice, Payment payment)
 {
     this.book       = book ?? throw new ArgumentNullException(nameof(book));
     this.dateOfSale = dateOfSale;
     this.amount     = amount;
     this.totalPrice = totalPrice;
     this.payment    = payment;
 }
示例#2
0
 public ReleasedBookEdition(BookEdition bookEdition, int amountOfBooks)
 {
     this.bookEdition   = bookEdition ?? throw new ArgumentNullException(nameof(bookEdition));
     this.amountOfBooks = amountOfBooks;
 }