public void ExcludesIngredients_Should_Work_Ok() { RunOnDatabase(async s => { DestroyDatabase(); // Arrange var fridgeRepo = new FridgeRepository(s); var ingredCatRepo = new IngredientsCategoryRepository(s); var ingredRepo = new IngredientsRepository(s, ingredCatRepo, fridgeRepo); var recipeRepo = new RecipesRepository(s, fridgeRepo, ingredRepo); // Act Populate(s); List <Ingredient> igToAdd = new List <Ingredient>(); igToAdd.Add(ingredRepo.GetByName("i1").Result.First()); var res = await recipeRepo.ExcludesTheseIngredients(recipeRepo.GetByName("r1", recipeRepo.GetAll()).Result.First().Id, igToAdd); // Assert Assert.AreEqual(false, res); }); }