public void CanGetAuthorsforbook(int bookid, int expected) { BookRepoAdo repo = new BookRepoAdo(); List <Author> authors = repo.GetAuthorsByBook(bookid); Assert.AreEqual(expected, authors.Count); }
public void CanGetBooksByAuthor(int AuthorID, int expected) { BookRepoAdo repo = new BookRepoAdo(); List <Book> books = repo.GetBooksByAuthor(AuthorID); Assert.AreEqual(expected, books.Count); }
public void CanGetAllBooks() { BookRepoAdo repo = new BookRepoAdo(); List <Book> Books = repo.LoadAllBooks(); Assert.IsNotEmpty(Books); }