Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }