Example #1
0
        public void ReturnBook()
        {
            _screenHelper.Reset();
            var id   = _screenHelper.GetBookId();
            var book = _bookRepository.ReturnABook(id);

            if (book == null)
            {
                Console.WriteLine(Texts.NoBook);
            }
            _menuHelper.NavigateToMainMenu();
        }
Example #2
0
        public void PerformBorrowingProcess()
        {
            _screenHelper.Reset();
            var id           = _screenHelper.GetBookId();
            var reader       = _screenHelper.GetNewReader();
            var daysToBorrow = _screenHelper.GetBorrowDays();

            var book = BorrowSingleBook(id, reader, daysToBorrow);

            _screenHelper.PrintBookBorrowedMessage(book, reader);

            _menuHelper.NavigateToMainMenu();
        }