public void TestGetAllBooks() { ///Arrange BookDao bookDao = new BookDao(); BookSearchArg arg = new BookSearchArg(); ///Act List <Book> books = bookDao.GetBookByCondtioin(arg); ///Assert Assert.AreEqual(2305, books.Count); }
public void TestGetClassBKBooks() { ///Arrange BookDao bookDao = new BookDao(); BookSearchArg arg = new BookSearchArg() { BookClassId = "BK" }; ///Act List <Book> books = bookDao.GetBookByCondtioin(arg); ///Assert Assert.AreEqual(145, books.Count); }