public async Task AllAsyncOrderByIdAndOrderDirectionDescendingShouldReturnCorrectResult() { // Arrange var db = await this.GetDatabase(); await this.SeedDb(db); var authorService = new AuthorService(db); var publisherService = new PublisherService(db); var bookService = new BookService(db, authorService, publisherService); // Act var result = await bookService.AllAsync("Id", "Descending"); //Assert result .Should() .Match(r => r.ElementAt(0).Id == 3 && r.ElementAt(1).Id == 2 && r.ElementAt(2).Id == 1) .And .HaveCount(3); }