public async Task GetAllBooksAsync_BooksExist_ReturnsOkObjectResultWithRequestedCount() { _bookService.Setup(m => m.GetAllAsync(It.IsAny <BookQueryParams>())) .ReturnsAsync(new PaginationDto <BookGetDto> { Page = new List <BookGetDto>(), TotalCount = 1 }); var result = await _booksController.GetAllBooksAsync(It.IsAny <BookQueryParams>()); result.Should().NotBeNull(); result.Value.Should().BeOfType <PaginationDto <BookGetDto> >(); result.Value.Page.Should().NotBeNull().And.NotContainNulls(); }