public async Task Return_True_If_Cocktail_Has_Ingredient() { var options = Utils.GetOptions(nameof(Return_True_If_Cocktail_Has_Ingredient)); var ingredient = new Ingredient { Id = Guid.Parse("4039e0f3-8d2d-43a5-a82b-477e42371cd6"), Name = "Martini Extra Dry", Abv = 0, Description = "", TypeId = Guid.Parse("619ac43c-075a-47be-befc-c68249054b85"), }; var cocktail = new Cocktail { Id = Guid.Parse("9ef97551-87f6-40ce-a88b-6c0e876ccb51"), Name = "Margarita", Description = "The Margarita is one of the most " + "popular cocktails in North America—for good reason. " + "Combining the tang of lime and the sweetness of o" + "range liqueur with the distinctive strength of " + "tequila, our classic Margarita strikes all of the right keys." }; var cocktailIngredient = new CocktailIngredients { CocktailId = Guid.Parse("9ef97551-87f6-40ce-a88b-6c0e876ccb51"), IngredientId = Guid.Parse("4039e0f3-8d2d-43a5-a82b-477e42371cd6"), }; using (var arrangeContext = new CMContext(options)) { arrangeContext.Ingredients.Add(ingredient); arrangeContext.Cocktails.Add(cocktail); arrangeContext.CocktailIngredients.Add(cocktailIngredient); arrangeContext.SaveChanges(); } using (var assertContext = new CMContext(options)) { var sut = new CocktailService(assertContext); var result = await sut.DoesCocktailHaveIngredient(cocktail.Id, ingredient.Id); Assert.IsTrue(result); } }