public async Task FindAsyncShouldReturnCorrectResultWithFilterAndOrder() { // Arrange var db = this.GetDatabase(); var firstTrip = new Trip { Id = 1, Title = "First" }; var secondTrip = new Trip { Id = 2, Title = "Second" }; var thirdTrip = new Trip { Id = 3, Title = "Third" }; db.AddRange(firstTrip, secondTrip, thirdTrip); await db.SaveChangesAsync(); var tripService = new TripService(db); // Act var result = await tripService.FindAsync("t", true, true, true); // Assert result .Should() .Match(r => r.ElementAt(0).Id == 3 && r.ElementAt(1).Id == 1) .And .HaveCount(2); }