public async Task Dc_GetByBestScore_ListRestaurantBefore_ReturnListBestScoredRestaurant() { //Arrange var restaurantService = new RestaurantService(); restaurantsToDelete.Add(new Restaurant() { Name = "test", Grade = new Grade() { Score = 1 } }); restaurantService.Create(restaurantsToDelete.Last()); restaurantsToDelete.Add(new Restaurant() { Name = "test", Grade = new Grade() { Score = 5 } }); restaurantService.Create(restaurantsToDelete.Last()); restaurantsToDelete.Add(new Restaurant() { Name = "test", Grade = new Grade() { Score = 9 } }); restaurantService.Create(restaurantsToDelete.Last()); var restosBefore = restaurantService.GetAll(); //Act var result = restaurantService.GetByBestScore(); //Assert //Assert.AreEqual(9, result.First().Grade.Score); Assert.AreNotEqual(restosBefore.First().Grade.Score, result.First().Grade.Score); //Clean up database await deleteTestResto(); }