public void DeleteMeal() { MealPrice toDelete = ctx.MealPriceSet.FirstOrDefault(p => p.PriceHT == 15M); repo.Delete(toDelete); repo.Save(); Assert.IsNull(ctx.MealPriceSet.FirstOrDefault(p => p.PriceHT == 15M)); Assert.IsNotNull(ctx.PeopleCategorySet.FirstOrDefault(p => p.Label == "Adultes")); Assert.IsNotNull(ctx.MealSet.FirstOrDefault(p => p.Title == "Meal1")); }