public async Task GetBooks_MockedDatabase_ReturnNotNull()
        {
            // Arrange
            var bookQueryService = new BookQueryService(_mockedBooksDbContext, _mockedMapper);

            // Act
            var books = await bookQueryService.GetBooks(string.Empty, string.Empty, string.Empty);

            // Assert
            Assert.IsNotNull(books);
        }
Beispiel #2
0
        public ActionResult List()
        {
            List <Book> books = queryService.GetBooks();

            return(View(books));
        }