public void ContainsIngredient_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); var res = await recipeRepo.ContainsIngredient(recipeRepo.GetByName("r1", recipeRepo.GetAll()).Result.First().Id, ingredRepo.GetByName("i1").Result.First().Id); // Assert Assert.IsTrue(res); }); }