Пример #1
0
        public void BorrowBookToUser(UserAccount userAccount, Book book)
        {
            if (userAccount == null)
            {
                throw new ArgumentNullException("userAccount");
            }
            if (book == null)
            {
                throw new ArgumentNullException("book");
            }

            userAccount.BorrowBook(book);
            book.IssueStock(1);
        }