public ActionResult Select(DrinkTypes type)
        {
            var drink = new DrinkMaker();

            var messages = new List <string>();

            messages.Add(drink.BoilWater());
            messages.Add(drink.AddPowder(type));
            messages.Add(drink.PourDrink(type));
            messages.Add(drink.AddExtras(type));

            var hotDrink = new HotDrink();

            hotDrink.Label    = type.ToString();
            hotDrink.Messages = messages;

            return(View(hotDrink));
        }
Esempio n. 2
0
        public string PourDrink(DrinkTypes type)
        {
            //the actions for pouring the drink

            return("Pour " + type.ToString() + " in the cup");
        }