Ejemplo n.º 1
0
 public Cocktail(string name, bool alcoholic, CocktailRecipe recipe)
 {
     Name      = name;
     Alcoholic = alcoholic;
     Recipe    = recipe;
 }
Ejemplo n.º 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));
 }