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; }
public ReleasedBookEdition(BookEdition bookEdition, int amountOfBooks) { this.bookEdition = bookEdition ?? throw new ArgumentNullException(nameof(bookEdition)); this.amountOfBooks = amountOfBooks; }