public BooksControllerTest()
        {
            // Lets create some sample books
            book1 = new Book { ID = 1, Book1 = "test1", AuthorName = "test1", ISBN = "NA" };
            book2 = new Book { ID = 2, Book1 = "test2", AuthorName = "test2", ISBN = "NA" };
            book3 = new Book { ID = 3, Book1 = "test3", AuthorName = "test3", ISBN = "NA" };
            book4 = new Book { ID = 4, Book1 = "test4", AuthorName = "test4", ISBN = "NA" };
            book5 = new Book { ID = 5, Book1 = "test5", AuthorName = "test5", ISBN = "NA" };

            books = new List<Book>
            {
            book1,
            book2,
            book3,
            book4
            };

            // Lets create our dummy repository
            booksRepo = new DummyBooksRepository(books);

            // Let us now create the Unit of work with our dummy repository
            uow = new UnitOfWork(booksRepo);

            // Now lets create the BooksController object to test and pass our unit of work
            controller = new HomeController(uow);
        }
        public BooksControllerTest()
        {
            // Lets create some sample books
            book1 = new Book {
                ID = 1, Book1 = "test1", AuthorName = "test1", ISBN = "NA"
            };
            book2 = new Book {
                ID = 2, Book1 = "test2", AuthorName = "test2", ISBN = "NA"
            };
            book3 = new Book {
                ID = 3, Book1 = "test3", AuthorName = "test3", ISBN = "NA"
            };
            book4 = new Book {
                ID = 4, Book1 = "test4", AuthorName = "test4", ISBN = "NA"
            };
            book5 = new Book {
                ID = 5, Book1 = "test5", AuthorName = "test5", ISBN = "NA"
            };

            books = new List <Book>
            {
                book1,
                book2,
                book3,
                book4
            };


            // Lets create our dummy repository
            booksRepo = new DummyBooksRepository(books);

            // Let us now create the Unit of work with our dummy repository
            uow = new UnitOfWork(booksRepo);

            // Now lets create the BooksController object to test and pass our unit of work
            controller = new HomeController(uow);
        }