Exemplo n.º 1
0
        /// <summary>
        /// list of all menu items
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> CompleteMenu()
        {
            var          all          = new List <IOrderItem>();
            AngryChicken angryChicken = new AngryChicken();

            all.Add(angryChicken);
            CowpokeChili cowpokeChili = new CowpokeChili();

            all.Add(cowpokeChili);
            PecosPulledPork pecosPulledPork = new PecosPulledPork();

            all.Add(pecosPulledPork);
            RustlersRibs rustlersRibs = new RustlersRibs();

            all.Add(rustlersRibs);
            TrailBurger trailBurger = new TrailBurger();

            all.Add(trailBurger);
            DakotaDoubleBurger dakotaDoubleBurger = new DakotaDoubleBurger();

            all.Add(dakotaDoubleBurger);
            TexasTripleBurger texasTripleBurger = new TexasTripleBurger();

            all.Add(texasTripleBurger);
            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                BakedBeans bakedBeans = new BakedBeans();
                bakedBeans.Size = size;
                all.Add(bakedBeans);
                ChiliCheeseFries chiliCheeseFries = new ChiliCheeseFries();
                chiliCheeseFries.Size = size;
                all.Add(chiliCheeseFries);
                CornDodgers cornDodgers = new CornDodgers();
                cornDodgers.Size = size;
                all.Add(cornDodgers);
                PanDeCampo panDeCampo = new PanDeCampo();
                panDeCampo.Size = size;
                all.Add(panDeCampo);

                CowboyCoffee cowboyCoffee = new CowboyCoffee();
                cowboyCoffee.Size = size;
                all.Add(cowboyCoffee);
                JerkedSoda jerkedSoda = new JerkedSoda();
                jerkedSoda.Size = size;
                all.Add(jerkedSoda);
                TexasTea texasTea = new TexasTea();
                texasTea.Size = size;
                all.Add(texasTea);
                Water water = new Water();
                water.Size = size;
                all.Add(water);
            }
            return(all);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets all the drinks
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> drinks = new List <IOrderItem>();

            drinks.Add(new JerkedSoda());
            JerkedSoda jMed = new JerkedSoda();

            drinkIncrease(jMed, Size.Medium);
            drinks.Add(jMed);
            JerkedSoda jLarge = new JerkedSoda();

            drinkIncrease(jLarge, Size.Large);
            drinks.Add(jLarge);

            drinks.Add(new CowboyCoffee());
            CowboyCoffee cMed = new CowboyCoffee();

            drinkIncrease(cMed, Size.Medium);
            drinks.Add(cMed);
            CowboyCoffee cLarge = new CowboyCoffee();

            drinkIncrease(cLarge, Size.Large);
            drinks.Add(cLarge);

            drinks.Add(new TexasTea());
            TexasTea tMed = new TexasTea();

            drinkIncrease(tMed, Size.Medium);
            drinks.Add(tMed);
            TexasTea tLarge = new TexasTea();

            drinkIncrease(tLarge, Size.Large);
            drinks.Add(tLarge);

            drinks.Add(new Water());
            Water wMed = new Water();

            drinkIncrease(wMed, Size.Medium);
            drinks.Add(wMed);
            Water wLarge = new Water();

            drinkIncrease(wLarge, Size.Large);
            drinks.Add(wLarge);

            return(drinks);
        }
Exemplo n.º 3
0
        /// <summary>
        /// List of all drinks
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> drinks = new List <IOrderItem>();

            drinks.Add(new CowboyCoffee());
            var mediumcoffee = new CowboyCoffee();

            mediumcoffee.Size = Size.Medium;
            drinks.Add(mediumcoffee);
            var largecoffee = new CowboyCoffee();

            largecoffee.Size = Size.Large;
            drinks.Add(largecoffee);

            drinks.Add(new JerkedSoda());
            var mediumSoda = new JerkedSoda();

            mediumSoda.Size = Size.Medium;
            drinks.Add(mediumSoda);
            var largeSoda = new JerkedSoda();

            largeSoda.Size = Size.Large;
            drinks.Add(largeSoda);

            drinks.Add(new TexasTea());
            var mediumTea = new TexasTea();

            mediumTea.Size = Size.Medium;
            drinks.Add(mediumTea);
            var largeTea = new TexasTea();

            largeTea.Size = Size.Large;
            drinks.Add(largeTea);

            drinks.Add(new Water());
            var mediumWater = new Water();

            mediumWater.Size = Size.Medium;
            drinks.Add(mediumWater);
            var largeWater = new Water();

            largeWater.Size = Size.Large;
            drinks.Add(largeWater);

            return(drinks);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Static class that creates a default object for each drink and returns a list of them
        /// </summary>
        /// <returns>The list of default drinks</returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> drinks = new List <IOrderItem>();
            JerkedSoda        soda   = new JerkedSoda();

            drinks.Add(soda);
            TexasTea tea = new TexasTea();

            drinks.Add(tea);
            CowboyCoffee coffee = new CowboyCoffee();

            drinks.Add(coffee);
            Water water = new Water();

            drinks.Add(water);
            return(drinks);
        }
Exemplo n.º 5
0
        /// <summary>
        /// All drink items
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> drinks = new List <IOrderItem>();

            drinks.Add(new CowboyCoffee());
            var mCoffee = new CowboyCoffee();

            mCoffee.Size = Size.Medium;
            drinks.Add(mCoffee);
            var lCoffee = new CowboyCoffee();

            drinks.Add(lCoffee);

            drinks.Add(new JerkedSoda());
            var mSoda = new JerkedSoda();

            mSoda.Size = Size.Medium;
            drinks.Add(mSoda);
            var lSoda = new JerkedSoda();

            lSoda.Size = Size.Large;
            drinks.Add(lSoda);

            drinks.Add(new TexasTea());
            var mTea = new TexasTea();

            mTea.Size = Size.Medium;
            drinks.Add(mTea);
            var lTea = new TexasTea();

            lTea.Size = Size.Large;
            drinks.Add(lTea);

            drinks.Add(new Water());
            var mWater = new Water();

            mWater.Size = Size.Medium;
            drinks.Add(mWater);
            var lWater = new Water();

            lWater.Size = Size.Large;
            drinks.Add(lWater);

            return(drinks);
        }
Exemplo n.º 6
0
        /// <summary>
        /// list of all drink items
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            var drinks = new List <IOrderItem>();

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                CowboyCoffee cowboyCoffee = new CowboyCoffee();
                cowboyCoffee.Size = size;
                drinks.Add(cowboyCoffee);
                JerkedSoda jerkedSoda = new JerkedSoda();
                jerkedSoda.Size = size;
                drinks.Add(jerkedSoda);
                TexasTea texasTea = new TexasTea();
                texasTea.Size = size;
                drinks.Add(texasTea);
                Water water = new Water();
                water.Size = size;
                drinks.Add(water);
            }
            return(drinks);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Holds a list of each drink in the menu
        /// </summary>
        /// <returns>A list of the drinks available</returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> Drinks = new List <IOrderItem>();

            //small
            Drink soda = new JerkedSoda();

            Drinks.Add(soda as IOrderItem);

            //medium
            Drink soda2 = new JerkedSoda
            {
                Size = Size.Medium
            };

            Drinks.Add(soda2 as IOrderItem);

            //large
            Drink soda3 = new JerkedSoda
            {
                Size = Size.Large
            };

            Drinks.Add(soda3 as IOrderItem);


            //small
            Drink tea = new TexasTea();

            Drinks.Add(tea as IOrderItem);

            //medium
            Drink tea2 = new TexasTea
            {
                Size = Size.Medium
            };

            Drinks.Add(tea2 as IOrderItem);

            //large
            Drink tea3 = new TexasTea
            {
                Size = Size.Large
            };

            Drinks.Add(tea3 as IOrderItem);


            //small
            Drink water = new Water();

            Drinks.Add(water as IOrderItem);

            //medium
            Drink water2 = new Water
            {
                Size = Size.Medium
            };

            Drinks.Add(water2 as IOrderItem);
            Drink water3 = new Water
            {
                //large
                Size = Size.Large
            };

            Drinks.Add(water3 as IOrderItem);


            //small
            Drink coffee = new CowboyCoffee();

            Drinks.Add(coffee as IOrderItem);

            //medium
            Drink coffee2 = new CowboyCoffee();

            coffee2.Size = Size.Medium;
            Drinks.Add(coffee2 as IOrderItem);

            //large
            Drink coffee3 = new CowboyCoffee();

            coffee3.Size = Size.Large;
            Drinks.Add(coffee3 as IOrderItem);


            return(Drinks);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Returns a list of all the items on the menu
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> CompleteMenu()
        {
            //Entrees

            List <IOrderItem> menuList = new List <IOrderItem>();

            menuList.Add(new CowpokeChili());
            menuList.Add(new AngryChicken());
            menuList.Add(new PecosPulledPork());
            menuList.Add(new TrailBurger());
            menuList.Add(new TexasTripleBurger());
            menuList.Add(new DakotaDoubleBurger());
            menuList.Add(new RustlersRibs());

            //Sides

            CornDodgers dodgersS = new CornDodgers();

            dodgersS.Size = Size.Small;
            menuList.Add(dodgersS);
            CornDodgers dodgersM = new CornDodgers();

            dodgersM.Size = Size.Medium;
            menuList.Add(dodgersM);
            CornDodgers dodgersL = new CornDodgers();

            dodgersL.Size = Size.Large;
            menuList.Add(dodgersL);

            ChiliCheeseFries chiliS = new ChiliCheeseFries();

            chiliS.Size = Size.Small;
            menuList.Add(chiliS);
            ChiliCheeseFries chiliM = new ChiliCheeseFries();

            chiliM.Size = Size.Medium;
            menuList.Add(chiliM);
            ChiliCheeseFries chiliL = new ChiliCheeseFries();

            chiliL.Size = Size.Large;
            menuList.Add(chiliL);

            BakedBeans bakedS = new BakedBeans();

            bakedS.Size = Size.Small;
            menuList.Add(bakedS);
            BakedBeans bakedM = new BakedBeans();

            bakedM.Size = Size.Medium;
            menuList.Add(bakedM);
            BakedBeans bakedL = new BakedBeans();

            bakedL.Size = Size.Large;
            menuList.Add(bakedL);

            PanDeCampo campoS = new PanDeCampo();

            campoS.Size = Size.Small;
            menuList.Add(campoS);
            PanDeCampo campoM = new PanDeCampo();

            campoM.Size = Size.Medium;
            menuList.Add(campoM);
            PanDeCampo campoL = new PanDeCampo();

            campoL.Size = Size.Large;
            menuList.Add(campoL);

            //Drinks

            JerkedSoda sodaS = new JerkedSoda();

            sodaS.Size = Size.Small;
            menuList.Add(sodaS);
            JerkedSoda sodaM = new JerkedSoda();

            sodaM.Size = Size.Medium;
            menuList.Add(sodaM);
            JerkedSoda sodaL = new JerkedSoda();

            sodaL.Size = Size.Large;
            menuList.Add(sodaL);

            Water waterS = new Water();

            waterS.Size = Size.Small;
            menuList.Add(waterS);
            Water waterM = new Water();

            waterM.Size = Size.Medium;
            menuList.Add(waterM);
            Water waterL = new Water();

            waterL.Size = Size.Large;
            menuList.Add(waterL);

            CowboyCoffee coffeeS = new CowboyCoffee();

            coffeeS.Size = Size.Small;
            menuList.Add(coffeeS);
            CowboyCoffee coffeeM = new CowboyCoffee();

            coffeeM.Size = Size.Medium;
            menuList.Add(coffeeM);
            CowboyCoffee coffeeL = new CowboyCoffee();

            coffeeL.Size = Size.Large;
            menuList.Add(coffeeL);

            TexasTea teaS = new TexasTea();

            teaS.Size = Size.Small;
            menuList.Add(teaS);
            TexasTea teaM = new TexasTea();

            teaM.Size = Size.Medium;
            menuList.Add(waterM);
            TexasTea teaL = new TexasTea();

            teaL.Size = Size.Large;
            menuList.Add(teaL);

            TexasTea teaSUS = new TexasTea();

            teaSUS.Size  = Size.Small;
            teaSUS.Sweet = false;
            menuList.Add(teaSUS);
            TexasTea teaMUS = new TexasTea();

            teaMUS.Size  = Size.Medium;
            teaMUS.Sweet = false;
            menuList.Add(teaMUS);
            TexasTea teaLUS = new TexasTea();

            teaLUS.Size  = Size.Large;
            teaLUS.Sweet = false;
            menuList.Add(teaLUS);

            return(menuList);
        }
Exemplo n.º 9
0
        /// <summary>
        /// Returns a list of all the drinks
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> menuList = new List <IOrderItem>();

            //Drinks

            JerkedSoda sodaS = new JerkedSoda();

            sodaS.Size = Size.Small;
            menuList.Add(sodaS);
            JerkedSoda sodaM = new JerkedSoda();

            sodaM.Size = Size.Medium;
            menuList.Add(sodaM);
            JerkedSoda sodaL = new JerkedSoda();

            sodaL.Size = Size.Large;
            menuList.Add(sodaL);

            Water waterS = new Water();

            waterS.Size = Size.Small;
            menuList.Add(waterS);
            Water waterM = new Water();

            waterM.Size = Size.Medium;
            menuList.Add(waterM);
            Water waterL = new Water();

            waterL.Size = Size.Large;
            menuList.Add(waterL);

            CowboyCoffee coffeeS = new CowboyCoffee();

            coffeeS.Size = Size.Small;
            menuList.Add(coffeeS);
            CowboyCoffee coffeeM = new CowboyCoffee();

            coffeeM.Size = Size.Medium;
            menuList.Add(coffeeM);
            CowboyCoffee coffeeL = new CowboyCoffee();

            coffeeL.Size = Size.Large;
            menuList.Add(coffeeL);

            TexasTea teaS = new TexasTea();

            teaS.Size = Size.Small;
            menuList.Add(teaS);
            TexasTea teaM = new TexasTea();

            teaM.Size = Size.Medium;
            menuList.Add(teaM);
            TexasTea teaL = new TexasTea();

            teaL.Size = Size.Large;
            menuList.Add(teaL);

            TexasTea teaSUS = new TexasTea();

            teaSUS.Size  = Size.Small;
            teaSUS.Sweet = false;
            menuList.Add(teaSUS);
            TexasTea teaMUS = new TexasTea();

            teaMUS.Size  = Size.Medium;
            teaMUS.Sweet = false;
            menuList.Add(teaMUS);
            TexasTea teaLUS = new TexasTea();

            teaLUS.Size  = Size.Large;
            teaLUS.Sweet = false;
            menuList.Add(teaLUS);

            return(menuList);
        }
Exemplo n.º 10
0
        /// <summary>
        /// Gets the Complete Menu for the Restaurant
        /// </summary>
        /// <returns>An Array of the Menu</returns>
        public static IEnumerable <IOrderItem> CompleteMenu()
        {
            List <IOrderItem> menu = new List <IOrderItem>();

            menu.Add(new AngryChicken());
            menu.Add(new CowpokeChili());
            menu.Add(new DakotaDoubleBurger());
            menu.Add(new PecosPulledPork());
            menu.Add(new RustlersRibs());
            menu.Add(new TrailBurger());
            menu.Add(new TexasTripleBurger());

            Side side = new CornDodgers();

            for (int i = 0; i < 3; i++)
            {
                side = new ChiliCheeseFries();
                if (i == 0)
                {
                    side.Size = Size.Small;
                }
                if (i == 1)
                {
                    side.Size = Size.Medium;
                }
                if (i == 2)
                {
                    side.Size = Size.Large;
                }
                menu.Add(side);
            }
            for (int i = 0; i < 3; i++)
            {
                side = new CornDodgers();
                if (i == 0)
                {
                    side.Size = Size.Small;
                }
                if (i == 1)
                {
                    side.Size = Size.Medium;
                }
                if (i == 2)
                {
                    side.Size = Size.Large;
                }
                menu.Add(side);
            }
            for (int i = 0; i < 3; i++)
            {
                side = new PanDeCampo();
                if (i == 0)
                {
                    side.Size = Size.Small;
                }
                if (i == 1)
                {
                    side.Size = Size.Medium;
                }
                if (i == 2)
                {
                    side.Size = Size.Large;
                }
                menu.Add(side);
            }

            for (int i = 0; i < 3; i++)
            {
                side = new BakedBeans();
                if (i == 0)
                {
                    side.Size = Size.Small;
                }
                if (i == 1)
                {
                    side.Size = Size.Medium;
                }
                if (i == 2)
                {
                    side.Size = Size.Large;
                }
                menu.Add(side);
            }

            Drink drink = new CowboyCoffee();

            for (int i = 0; i < 3; i++)
            {
                drink = new JerkedSoda();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                menu.Add(drink);
            }
            for (int i = 0; i < 3; i++)
            {
                drink = new TexasTea();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                menu.Add(drink);
            }
            for (int i = 0; i < 3; i++)
            {
                drink = new CowboyCoffee();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                menu.Add(drink);
            }

            for (int i = 0; i < 3; i++)
            {
                drink = new Water();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                menu.Add(drink);
            }

            return(menu);
        }
Exemplo n.º 11
0
        /// <summary>
        /// Gets the Drinks for the Menu
        /// </summary>
        /// <returns>An Array of the Drinks</returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> drinks = new List <IOrderItem>();

            Drink drink = new CowboyCoffee();

            for (int i = 0; i < 3; i++)
            {
                drink = new JerkedSoda();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                drinks.Add(drink);
            }
            for (int i = 0; i < 3; i++)
            {
                drink = new TexasTea();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                drinks.Add(drink);
            }
            for (int i = 0; i < 3; i++)
            {
                drink = new CowboyCoffee();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                drinks.Add(drink);
            }

            for (int i = 0; i < 3; i++)
            {
                drink = new Water();
                if (i == 0)
                {
                    drink.Size = Size.Small;
                }
                if (i == 1)
                {
                    drink.Size = Size.Medium;
                }
                if (i == 2)
                {
                    drink.Size = Size.Large;
                }
                drinks.Add(drink);
            }

            return(drinks);
        }
Exemplo n.º 12
0
        /// <summary>
        /// List of all the drinks
        /// </summary>
        /// <returns>List of all the drinks</returns>
        public static IEnumerable <IOrderItem> Drinks()
        {
            List <IOrderItem> items = new List <IOrderItem>();

            IOrderItem SmallJerkedSoda = new JerkedSoda();

            items.Add(SmallJerkedSoda);

            IOrderItem MediumJerkedSoda = new JerkedSoda();

            MediumJerkedSoda.Size = Size.Medium;
            items.Add(MediumJerkedSoda);

            IOrderItem LargeJerkedSoda = new JerkedSoda();

            LargeJerkedSoda.Size = Size.Large;
            items.Add(LargeJerkedSoda);

            IOrderItem SmallTexasTea = new TexasTea();

            items.Add(SmallTexasTea);

            IOrderItem MediumTexasTea = new TexasTea();

            MediumTexasTea.Size = Size.Medium;
            items.Add(MediumTexasTea);

            IOrderItem LargeTexasTea = new TexasTea();

            LargeTexasTea.Size = Size.Large;
            items.Add(LargeTexasTea);

            IOrderItem SmallCowboyCoffee = new CowboyCoffee();

            items.Add(SmallCowboyCoffee);

            IOrderItem MediumCowboyCoffee = new CowboyCoffee();

            MediumCowboyCoffee.Size = Size.Medium;
            items.Add(MediumCowboyCoffee);

            IOrderItem LargeCowboyCoffee = new CowboyCoffee();

            LargeCowboyCoffee.Size = Size.Large;
            items.Add(LargeCowboyCoffee);

            IOrderItem SmallWater = new Water();

            items.Add(SmallWater);

            IOrderItem MediumWater = new Water();

            MediumWater.Size = Size.Medium;
            items.Add(MediumWater);

            IOrderItem LargeWater = new Water();

            LargeWater.Size = Size.Large;
            items.Add(LargeWater);

            return(items.ToArray());
        }
Exemplo n.º 13
0
        /// <summary>
        /// yeilds Ienumerable list for the whole menu
        /// </summary>
        /// <returns>ienumerable<IorderItem>for the whole menu</returns>
        public static IEnumerable <IOrderItem> CompleteMenu()
        {
            var temp = new List <IOrderItem>();

            //entrees:
            temp.Add(new AngryChicken());
            temp.Add(new PecosPulledPork());
            temp.Add(new TrailBurger());
            temp.Add(new DakotaDoubleBurger());
            temp.Add(new TexasTripleBurger());
            temp.Add(new RustlersRibs());
            temp.Add(new CowpokeChili());
            //sides:
            var MedBaked = new BakedBeans();

            MedBaked.Size = Size.Medium;
            var LargeBaked = new BakedBeans();

            LargeBaked.Size = Size.Large;
            temp.Add(new BakedBeans());
            temp.Add(MedBaked);
            temp.Add(LargeBaked);
            var MedPan = new PanDeCampo();

            MedPan.Size = Size.Medium;
            var LargePan = new PanDeCampo();

            LargePan.Size = Size.Large;
            temp.Add(new PanDeCampo());
            temp.Add(MedPan);
            temp.Add(LargePan);
            var MedFries = new ChiliCheeseFries();

            MedFries.Size = Size.Medium;
            var LargeFries = new ChiliCheeseFries();

            LargeFries.Size = Size.Large;
            temp.Add(new ChiliCheeseFries());
            temp.Add(MedFries);
            temp.Add(LargeFries);
            var MedCorn = new CornDodgers();

            MedCorn.Size = Size.Medium;
            var LargeCorn = new CornDodgers();

            LargeCorn.Size = Size.Large;
            temp.Add(new CornDodgers());
            temp.Add(MedCorn);
            temp.Add(LargeCorn);
            //drinks:
            var MedTea = new TexasTea();

            MedTea.Size = Size.Medium;
            var LargeTea = new TexasTea();

            LargeTea.Size = Size.Large;
            temp.Add(new TexasTea());
            temp.Add(MedTea);
            temp.Add(LargeTea);

            var MedSoda = new JerkedSoda();

            MedSoda.Size = Size.Medium;

            var LargeSoda = new JerkedSoda();

            LargeSoda.Size = Size.Large;

            temp.Add(new JerkedSoda());
            temp.Add(MedSoda);
            temp.Add(LargeSoda);

            var MedWater = new Water();

            MedWater.Size = Size.Medium;
            var LargeWater = new Water();

            LargeWater.Size = Size.Large;
            temp.Add(new Water());
            temp.Add(MedWater);
            temp.Add(LargeWater);
            var MedCoffee = new CowboyCoffee();

            MedCoffee.Size = Size.Medium;
            var LargeCoffee = new CowboyCoffee();

            LargeCoffee.Size = Size.Large;
            temp.Add(new CowboyCoffee());
            temp.Add(MedCoffee);
            temp.Add(LargeCoffee);

            return(temp.ToArray());
        }
Exemplo n.º 14
0
        /// <summary>
        /// Static class that creates a default object for each entree, side, and drink and returns a list of them
        /// </summary>
        /// <returns>The list of default entrees, sides, and drinks</returns>
        public static IEnumerable <IOrderItem> CompleteMenu()
        {
            List <IOrderItem> completemenu = new List <IOrderItem>();
            //Entrees copy and paste, couldn't get "Concat" to work so this is brute force implemented
            AngryChicken chicken = new AngryChicken();

            completemenu.Add(chicken);
            CowpokeChili chili = new CowpokeChili();

            completemenu.Add(chili);
            TrailBurger trailburger = new TrailBurger();

            completemenu.Add(trailburger);
            RustlersRibs ribs = new RustlersRibs();

            completemenu.Add(ribs);
            PecosPulledPork pulledpork = new PecosPulledPork();

            completemenu.Add(pulledpork);
            DakotaDoubleBurger dakotaburger = new DakotaDoubleBurger();

            completemenu.Add(dakotaburger);
            TexasTripleBurger texasburger = new TexasTripleBurger();

            completemenu.Add(texasburger);
            //Sides copy and paste
            BakedBeans smallbeans = new BakedBeans();

            completemenu.Add(smallbeans);
            BakedBeans mediumbeans = new BakedBeans();

            mediumbeans.Size = Size.Medium;
            completemenu.Add(mediumbeans);
            BakedBeans largebeans = new BakedBeans();

            largebeans.Size = Size.Large;
            completemenu.Add(largebeans);
            ChiliCheeseFries smallchilicheesefries = new ChiliCheeseFries();

            completemenu.Add(smallchilicheesefries);
            ChiliCheeseFries mediumchilicheesefries = new ChiliCheeseFries();

            mediumchilicheesefries.Size = Size.Medium;
            completemenu.Add(mediumchilicheesefries);
            ChiliCheeseFries largechilicheesefries = new ChiliCheeseFries();

            largechilicheesefries.Size = Size.Large;
            completemenu.Add(largechilicheesefries);
            CornDodgers smalldodgers = new CornDodgers();

            completemenu.Add(smalldodgers);
            CornDodgers mediumdodgers = new CornDodgers();

            mediumdodgers.Size = Size.Medium;
            completemenu.Add(mediumdodgers);
            CornDodgers largedodgers = new CornDodgers();

            largedodgers.Size = Size.Large;
            completemenu.Add(largedodgers);
            PanDeCampo smallcampo = new PanDeCampo();

            completemenu.Add(smallcampo);
            PanDeCampo mediumcampo = new PanDeCampo();

            mediumcampo.Size = Size.Medium;
            completemenu.Add(mediumcampo);
            PanDeCampo largecampo = new PanDeCampo();

            largecampo.Size = Size.Large;
            completemenu.Add(largecampo);
            //Drinks copy and paste
            JerkedSoda smallsoda = new JerkedSoda();

            completemenu.Add(smallsoda);
            JerkedSoda mediumsoda = new JerkedSoda();

            mediumsoda.Size = Size.Medium;
            completemenu.Add(mediumsoda);
            JerkedSoda largesoda = new JerkedSoda();

            largesoda.Size = Size.Large;
            completemenu.Add(largesoda);
            TexasTea smalltea = new TexasTea();

            completemenu.Add(smalltea);
            TexasTea mediumtea = new TexasTea();

            mediumtea.Size = Size.Medium;
            completemenu.Add(mediumtea);
            TexasTea largetea = new TexasTea();

            largetea.Size = Size.Large;
            completemenu.Add(largetea);
            CowboyCoffee smallcoffee = new CowboyCoffee();

            completemenu.Add(smallcoffee);
            CowboyCoffee mediumcoffee = new CowboyCoffee();

            mediumcoffee.Size = Size.Medium;
            completemenu.Add(mediumcoffee);
            CowboyCoffee largecoffee = new CowboyCoffee();

            largecoffee.Size = Size.Large;
            completemenu.Add(largecoffee);
            Water smallwater = new Water();

            completemenu.Add(smallwater);
            Water mediumwater = new Water();

            mediumwater.Size = Size.Medium;
            completemenu.Add(mediumwater);
            Water largewater = new Water();

            largewater.Size = Size.Large;
            completemenu.Add(largewater);

            return(completemenu);
        }