public IMake AddBean(Ingredient bean) { Bean = bean; sort = bean.Sort; Sort.Add(sort); CoffeeIngredients.Add(Additive.Esspresso); return(this); }
public IBeverageRecipe getRecipe(CoffeeSort coffeeSort) { switch (coffeeSort) { case CoffeeSort.Latte: return(new Latte()); case CoffeeSort.Espresso: return(new Espresso()); case CoffeeSort.Americano: return(new Americano()); case CoffeeSort.Macchiato: return(new Macchiato()); case CoffeeSort.Cappucino: return(new Cappuccino()); case CoffeeSort.Mocha: return(new Mocha()); } return(null); }
protected override void OnOpenNew() { Sort = new CoffeeSort(); }
protected override void OnOpenEdit(object argEntity) { Sort = argEntity as CoffeeSort; }
public ICoffeeMaker AddBeans(CoffeeSort sort, int grams) { Beans = new Beans(sort, grams); Console.WriteLine(grams + " grams of " + sort.ToString() + " beans added."); return(this); }
public Beans(CoffeeSort sort, int amountInGrams) { this.sort = sort; this.AmountInGrams = amountInGrams; }