Exemple #1
0
        /// <summary>
        /// Adds an instance of every side to a list and uses it as an IEnumerable
        /// </summary>
        /// <returns>sideList, IEnumerable of every side</returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> sideList = new List <IOrderItem>();

            foreach (Size s in Enum.GetValues(typeof(Size)))
            {
                var beans = new BakedBeans();
                beans.Size = s;
                sideList.Add(beans);
            }

            foreach (Size s in Enum.GetValues(typeof(Size)))
            {
                var fries = new ChiliCheeseFries();
                fries.Size = s;
                sideList.Add(fries);
            }

            foreach (Size s in Enum.GetValues(typeof(Size)))
            {
                var corn = new CornDodgers();
                corn.Size = s;
                sideList.Add(corn);
            }

            foreach (Size s in Enum.GetValues(typeof(Size)))
            {
                var pan = new PanDeCampo();
                pan.Size = s;
                sideList.Add(pan);
            }
            return(sideList);
        }
Exemple #2
0
        /// <summary>
        /// returns all sides
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            var sides = new List <IOrderItem>();

            BakedBeans       beans   = new BakedBeans();
            ChiliCheeseFries fries   = new ChiliCheeseFries();
            CornDodgers      dodgers = new CornDodgers();
            PanDeCampo       pan     = new PanDeCampo();

            sides.Add(beans);
            sides.Add(fries);
            sides.Add(dodgers);
            sides.Add(pan);

            //BakedBeans sbeans = new BakedBeans();
            //sbeans.Size = Size.Small;
            //BakedBeans mbeans = new BakedBeans();
            //mbeans.Size = Size.Medium;
            //BakedBeans lbeans = new BakedBeans();
            //lbeans.Size = Size.Large;

            //ChiliCheeseFries sfries = new ChiliCheeseFries();
            //sfries.Size = Size.Small;
            //ChiliCheeseFries mfries = new ChiliCheeseFries();
            //mfries.Size = Size.Medium;
            //ChiliCheeseFries lfries = new ChiliCheeseFries();
            //lfries.Size = Size.Large;

            //CornDodgers sdodgers = new CornDodgers();
            //sdodgers.Size = Size.Small;
            //CornDodgers mdodgers = new CornDodgers();
            //mdodgers.Size = Size.Medium;
            //CornDodgers ldodgers = new CornDodgers();
            //ldodgers.Size = Size.Large;

            //PanDeCampo span = new PanDeCampo();
            //span.Size = Size.Small;
            //PanDeCampo mpan = new PanDeCampo();
            //mpan.Size = Size.Medium;
            //PanDeCampo lpan = new PanDeCampo();
            //lpan.Size = Size.Large;

            //sides.Add(sbeans);
            //sides.Add(mbeans);
            //sides.Add(lbeans);

            //sides.Add(sfries);
            //sides.Add(mfries);
            //sides.Add(lfries);

            //sides.Add(sbeans);
            //sides.Add(sbeans);
            //sides.Add(sbeans);

            //sides.Add(sbeans);
            //sides.Add(sbeans);
            //sides.Add(sbeans);

            return(sides);
        }
        /// <summary>
        /// All the sides
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> sideItems = new List <IOrderItem>();

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                BakedBeans beans = new BakedBeans();
                beans.Size = size;
                sideItems.Add(beans);
            }

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                ChiliCheeseFries fries = new ChiliCheeseFries();
                fries.Size = size;
                sideItems.Add(fries);
            }

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                CornDodgers corn = new CornDodgers();
                corn.Size = size;
                sideItems.Add(corn);
            }

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                PanDeCampo de = new PanDeCampo();
                de.Size = size;
                sideItems.Add(de);
            }

            return(sideItems);
        }
Exemple #4
0
        /// <summary>
        /// Returns All possible sides
        /// </summary>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> menuSides = new List <IOrderItem>();

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                CornDodgers corn = new CornDodgers();
                corn.Size = size;
                menuSides.Add(corn);
            }

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                ChiliCheeseFries chili = new ChiliCheeseFries();
                chili.Size = size;
                menuSides.Add(chili);
            }

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                BakedBeans baked = new BakedBeans();
                baked.Size = size;
                menuSides.Add(baked);
            }

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                PanDeCampo campo = new PanDeCampo();
                campo.Size = size;
                menuSides.Add(campo);
            }

            return(menuSides);
        }
Exemple #5
0
        /// <summary>
        /// Static class returning a list of all avaiable sides.
        /// </summary>
        /// <returns>A list of all available sides.</returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> menu = new List <IOrderItem>();

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                BakedBeans side = new BakedBeans();
                side.Size = size;
                menu.Add(side);
            }
            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                ChiliCheeseFries side = new ChiliCheeseFries();
                side.Size = size;
                menu.Add(side);
            }
            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                CornDodgers side = new CornDodgers();
                side.Size = size;
                menu.Add(side);
            }
            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                PanDeCampo side = new PanDeCampo();
                side.Size = size;
                menu.Add(side);
            }
            return(menu);
        }
Exemple #6
0
        /// <summary>
        /// Returns a list of all the sides
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> menuList = new List <IOrderItem>();

            //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);

            return(menuList);
        }
Exemple #7
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);
        }
Exemple #8
0
        /// <summary>
        /// All Side Items
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> sides = new List <IOrderItem>();

            sides.Add(new BakedBeans());
            var mBakedBeans = new BakedBeans();

            mBakedBeans.Size = Size.Medium;
            sides.Add(mBakedBeans);
            var lBakedBeans = new BakedBeans();

            lBakedBeans.Size = Size.Large;
            sides.Add(lBakedBeans);


            sides.Add(new ChiliCheeseFries());
            var mChilliCheeseFies = new ChiliCheeseFries();

            mChilliCheeseFies.Size = Size.Medium;
            sides.Add(mChilliCheeseFies);
            var lChilliCheeseFries = new ChiliCheeseFries();

            lChilliCheeseFries.Size = Size.Large;
            sides.Add(lChilliCheeseFries);

            sides.Add(new CornDodgers());
            var mCorn = new CornDodgers();

            mCorn.Size = Size.Medium;
            sides.Add(mCorn);
            var lCorn = new CornDodgers();

            lCorn.Size = Size.Large;
            sides.Add(lCorn);

            sides.Add(new PanDeCampo());
            var mPan = new PanDeCampo();

            mPan.Size = Size.Medium;
            sides.Add(mPan);
            var lPan = new PanDeCampo();

            lPan.Size = Size.Large;
            sides.Add(lPan);

            return(sides);
        }
Exemple #9
0
        /// <summary>
        /// List of all sides
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> sides = new List <IOrderItem>();

            sides.Add(new BakedBeans());
            var mediumbb = new BakedBeans();

            mediumbb.Size = Size.Medium;
            sides.Add(mediumbb);
            var largebb = new BakedBeans();

            largebb.Size = Size.Large;
            sides.Add(largebb);


            sides.Add(new ChiliCheeseFries());
            var mediumchili = new ChiliCheeseFries();

            mediumchili.Size = Size.Medium;
            sides.Add(mediumchili);
            var largechili = new ChiliCheeseFries();

            largechili.Size = Size.Large;
            sides.Add(largechili);

            sides.Add(new CornDodgers());
            var mediumcorn = new CornDodgers();

            mediumcorn.Size = Size.Medium;
            sides.Add(mediumcorn);
            var largecorn = new CornDodgers();

            largecorn.Size = Size.Large;
            sides.Add(largecorn);

            sides.Add(new PanDeCampo());
            var mediumpan = new PanDeCampo();

            mediumpan.Size = Size.Medium;
            sides.Add(mediumpan);
            var largepan = new PanDeCampo();

            largepan.Size = Size.Large;
            sides.Add(largepan);

            return(sides);
        }
Exemple #10
0
        /// <summary>
        /// Gets all the sides
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> sides = new List <IOrderItem>();

            sides.Add(new BakedBeans());
            BakedBeans bMed = new BakedBeans();

            sideIncrease(bMed, Size.Medium);
            sides.Add(bMed);
            BakedBeans bLarge = new BakedBeans();

            sideIncrease(bLarge, Size.Large);
            sides.Add(bLarge);

            sides.Add(new ChiliCheeseFries());
            ChiliCheeseFries cMed = new ChiliCheeseFries();

            sideIncrease(cMed, Size.Medium);
            sides.Add(cMed);
            ChiliCheeseFries cLarge = new ChiliCheeseFries();

            sideIncrease(cLarge, Size.Large);
            sides.Add(cLarge);

            sides.Add(new PanDeCampo());
            PanDeCampo dMed = new PanDeCampo();

            sideIncrease(dMed, Size.Medium);
            sides.Add(dMed);
            PanDeCampo dLarge = new PanDeCampo();

            sideIncrease(dLarge, Size.Large);
            sides.Add(dLarge);

            sides.Add(new CornDodgers());
            CornDodgers cdMed = new CornDodgers();

            sideIncrease(cdMed, Size.Medium);
            sides.Add(cdMed);
            CornDodgers cdLarge = new CornDodgers();

            sideIncrease(cdLarge, Size.Large);
            sides.Add(cdLarge);
            return(sides);
        }
Exemple #11
0
        /// <summary>
        /// Static class that creates a default object for each side and returns a list of them
        /// </summary>
        /// <returns>The list of default sides</returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> sides = new List <IOrderItem>();
            BakedBeans        beans = new BakedBeans();

            sides.Add(beans);
            ChiliCheeseFries chilicheesefries = new ChiliCheeseFries();

            sides.Add(chilicheesefries);
            CornDodgers dodgers = new CornDodgers();

            sides.Add(dodgers);
            PanDeCampo campo = new PanDeCampo();

            sides.Add(campo);



            return(sides);
        }
Exemple #12
0
        /// <summary>
        /// lis tof all side items
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            var sides = new List <IOrderItem>();

            foreach (Size size in Enum.GetValues(typeof(Size)))
            {
                BakedBeans bakedBeans = new BakedBeans();
                bakedBeans.Size = size;
                sides.Add(bakedBeans);
                ChiliCheeseFries chiliCheeseFries = new ChiliCheeseFries();
                chiliCheeseFries.Size = size;
                sides.Add(chiliCheeseFries);
                CornDodgers cornDodgers = new CornDodgers();
                cornDodgers.Size = size;
                sides.Add(cornDodgers);
                PanDeCampo panDeCampo = new PanDeCampo();
                panDeCampo.Size = size;
                sides.Add(panDeCampo);
            }
            return(sides);
        }
Exemple #13
0
        /// <summary>
        /// List of all the sides
        /// </summary>
        /// <returns>List of all the sides</returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> items = new List <IOrderItem>();

            IOrderItem SmallChiliCheeseFries = new ChiliCheeseFries();

            items.Add(SmallChiliCheeseFries);

            IOrderItem MediumChiliCheeseFries = new ChiliCheeseFries();

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

            IOrderItem LargeChiliCheeseFries = new ChiliCheeseFries();

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

            IOrderItem SmallCornDodgers = new CornDodgers();

            items.Add(SmallCornDodgers);

            IOrderItem MediumCornDodgers = new CornDodgers();

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

            IOrderItem LargeCornDodgers = new CornDodgers();

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

            IOrderItem SmallPanDeCampo = new PanDeCampo();

            items.Add(SmallPanDeCampo);

            IOrderItem MediumPanDeCampo = new PanDeCampo();

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

            IOrderItem LargePanDeCampo = new PanDeCampo();

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

            IOrderItem SmallBakedBeans = new BakedBeans();

            items.Add(SmallBakedBeans);

            IOrderItem MediumBakedBeans = new BakedBeans();

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

            IOrderItem LargeBakedBeans = new BakedBeans();

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

            return(items.ToArray());
        }
Exemple #14
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());
        }
Exemple #15
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);
        }
Exemple #16
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);
        }
Exemple #17
0
        /// <summary>
        /// Gets the Sides for the Menu
        /// </summary>
        /// <returns>An Array of the Sides</returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> sides = new List <IOrderItem>();

            Side side = new ChiliCheeseFries();

            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;
                }
                sides.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;
                }
                sides.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;
                }
                sides.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;
                }
                sides.Add(side);
            }

            return(sides);
        }
Exemple #18
0
        /// <summary>
        /// Holds a list of each sides in the menu
        /// </summary>
        /// <returns>A list of the sides available</returns>
        public static IEnumerable <IOrderItem> Sides()
        {
            List <IOrderItem> Sides = new List <IOrderItem>();

            //small
            Side panDeCampo = new PanDeCampo();

            Sides.Add(panDeCampo as IOrderItem);

            //medium
            Side panDeCampo2 = new PanDeCampo();

            panDeCampo2.Size = Size.Medium;
            Sides.Add(panDeCampo2 as IOrderItem);

            //large
            Side panDeCampo3 = new PanDeCampo();

            panDeCampo3.Size = Size.Large;
            Sides.Add(panDeCampo3 as IOrderItem);

            //small
            Side chiliCheeseFries = new ChiliCheeseFries();

            Sides.Add(chiliCheeseFries as IOrderItem);

            //medium
            Side chiliCheeseFries2 = new ChiliCheeseFries();

            chiliCheeseFries2.Size = Size.Medium;
            Sides.Add(chiliCheeseFries2 as IOrderItem);

            //large
            Side chiliCheeseFries3 = new ChiliCheeseFries();

            chiliCheeseFries3.Size = Size.Large;
            Sides.Add(chiliCheeseFries3 as IOrderItem);


            //small
            Side bakedBeans = new BakedBeans();

            Sides.Add(bakedBeans as IOrderItem);

            //medium
            Side bakedBeans2 = new BakedBeans();

            bakedBeans2.Size = Size.Medium;
            Sides.Add(bakedBeans2 as IOrderItem);

            //large
            Side bakedBeans3 = new BakedBeans();

            bakedBeans3.Size = Size.Large;
            Sides.Add(bakedBeans3 as IOrderItem);


            //small
            Side cornDodgers = new CornDodgers();

            Sides.Add(cornDodgers as IOrderItem);

            //medium
            Side cornDodgers2 = new CornDodgers();

            cornDodgers2.Size = Size.Medium;
            Sides.Add(cornDodgers2 as IOrderItem);

            //large
            Side cornDodgers3 = new CornDodgers();

            cornDodgers3.Size = Size.Large;
            Sides.Add(cornDodgers3 as IOrderItem);


            return(Sides);
        }
Exemple #19
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);
        }