Exemplo n.º 1
0
        public void GetTheRightNumberOfCopiesTest(int selectedBook, int i, int expected)
        {
            DateTime date1  = DateTime.Today;
            DateTime date   = date1.AddYears(1);
            Book     book   = SelectBookById.ValidateSelectedBook(selectedBook, i);
            int      result = CheckLoansToCopies.Book(book.Id, expected, date1, date);

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 2
0
        public void SelectBookByIdTests(int selectedBook, int i, string expectedBookName)
        {
            Book book = SelectBookById.ValidateSelectedBook(selectedBook, i);

            Assert.AreEqual(expectedBookName, book.Name);
        }