Beispiel #1
0
 public Cocktail(string name, bool alcoholic, CocktailRecipe recipe)
 {
     Name      = name;
     Alcoholic = alcoholic;
     Recipe    = recipe;
 }
Beispiel #2
0
 public void AddCocktail(string name, CocktailRecipe alcoholicRecipe, CocktailRecipe nonAlcoholicRecipe)
 {
     _alcoholic.Add(name, new Cocktail(name, true, alcoholicRecipe));
     _nonAlcoholic.Add(name, new Cocktail(name, false, nonAlcoholicRecipe));
 }