Пример #1
0
        /*
         * ___________________________________
         |   METHOD INSPECT                 |
         |__________________________________|
         */
        public string Inspect(string menuItem)
        {
            //CR: Check requirements for this method
            if (menuItem == "Chicken")
            {
                ChickenOrder chicken = new ChickenOrder();

                return(chicken.CutUp());
            }
            else
            {
                EggOrder egg = new EggOrder();
                if (egg.Crack() > 25)
                {
                    return($"{egg.GetQuality()} , {egg.DiscardShell()}");
                }
                else
                {
                    return(egg.GetQuality());
                }
            }
        }