Example #1
0
        static void Main(string[] args)
        {
            List <LunchBuddy> companions = new List <LunchBuddy> {
            };

            var buddy1 = new LunchBuddy("Alex", "Marble");
            var buddy2 = new LunchBuddy("Laura", "Collins");
            var buddy3 = new LunchBuddy("Bryan", "Tidwell");
            var buddy4 = new LunchBuddy("Orion", "Marble");

            companions.Add(buddy2);
            companions.Add(buddy3);

            buddy1.Eat("pizza", companions);

            buddy2.Eat("yakitori");

            buddy3.Eat();

            companions.Add(buddy1);
            companions.Remove(buddy3);

            buddy4.Eat(companions);

            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            List <LunchBuddy> companions = new List <LunchBuddy> {
            };

            var beedineet1 = new LunchBuddy("Beth", "Thielman");
            var beedineet2 = new LunchBuddy("Nick", "Davis");
            var beedineet3 = new LunchBuddy("Kayla", "Davis");
            var beedineet4 = new LunchBuddy("Sophie", "Seage");

            companions.Add(beedineet1);
            companions.Add(beedineet2);
            companions.Add(beedineet3);

            beedineet4.Eat("coq au vin", companions);

            beedineet1.Eat();

            beedineet2.Eat("baked Alaska");

            companions.Add(beedineet4);
            companions.Remove(beedineet3);

            beedineet3.Eat(companions);

            Console.ReadLine();
        }
Example #3
0
        static void Main(string[] args)
        {
            LunchBuddy lunchBuddy1 = new LunchBuddy("John", "Key");

            LunchBuddy lunchBuddy2 = new LunchBuddy("Gabe", "Seals");

            LunchBuddy lunchBuddy3 = new LunchBuddy("Connor", "Sullivan");

            LunchBuddy lunchBuddy4 = new LunchBuddy("Richard", "Kincade");

            LunchBuddy lunchBuddy5 = new LunchBuddy("Brittany", "Key");


            List <LunchBuddy> companions = new List <LunchBuddy> {
            };

            companions.Add(lunchBuddy1);
            companions.Add(lunchBuddy2);
            companions.Add(lunchBuddy3);
            companions.Add(lunchBuddy4);
            companions.Add(lunchBuddy5);

            lunchBuddy1.Eat();
            lunchBuddy2.Eat("Steak");
            lunchBuddy3.Eat(companions);
            lunchBuddy4.Eat("Tacos", companions);
            Console.ReadLine();
        }
Example #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Lunch Buddies!");

            var restaurant1 = new Restaurant();

            restaurant1.WhereAmI();

            var companionsForLunchBuddy = new List <string>()
            {
                "Fred",
                "Samantha",
                "Chris",
                "Ava"
            };


            var lunchBuddy = new LunchBuddy("Bryce", "Lander");

            lunchBuddy.Eat();
            lunchBuddy.Eat("sushi");
            lunchBuddy.Eat(companionsForLunchBuddy);
            lunchBuddy.Eat("steak", companionsForLunchBuddy);



            Console.ReadLine();
        }
Example #5
0
        static void Main(string[] args)
        {
            List <LunchBuddy> buddies = new List <LunchBuddy>();
            var buddy = new LunchBuddy("Mikey", "Jones");

            buddies.Add(new LunchBuddy("Ryan", "Cargo"));
            buddies.Add(new LunchBuddy("Matthew", "Slowdown"));
            buddies.Add(new LunchBuddy("Brandon", "Mediumspeed"));
            buddy.Eat();
            buddy.EatString("spaghetti");
            buddy.EatList(buddies);
            buddy.EatStringAndList("monkeys", buddies);
        }
Example #6
0
        static void Main(string[] args)
        {
            var rando   = new LunchBuddy("Jamie", "Phillips");
            var friend1 = new LunchBuddy("Ronald", "Reagan");

            rando.Eating();
            friend1.eat("spaghetti");
            rando.Company();
            friend1.WhatToEat("Fried Chicken");
            var companion = new LunchBuddy("Jamie", "Phillips");

            Console.ReadLine();
        }
Example #7
0
        static void Main(string[] args)
        {
            var LunchBuddy = new LunchBuddy("Ginger", "Root");

            List <LunchBuddy> companions = new List <LunchBuddy> {
            };
            var buddy1 = new LunchBuddy("Beet", "Root");
            var buddy2 = new LunchBuddy("Tap", "Root");

            companions.Add(buddy1);
            companions.Add(buddy2);

            LunchBuddy.Eat("nacho fries");
            LunchBuddy.Eat(companions);
            LunchBuddy.Eat("fries", companions);
            Console.ReadKey();
        }
Example #8
0
        static void Main(string[] args)
        {
            LunchBuddy        lunchBuddy  = new LunchBuddy("Frank", "Sinatra");
            LunchBuddy        lunchBuddy2 = new LunchBuddy("Dolly", "Parton");
            LunchBuddy        lunchBuddy3 = new LunchBuddy("John", "Mayer");
            LunchBuddy        lunchBuddy4 = new LunchBuddy("Kendrick", "Lamar");
            List <LunchBuddy> companions  = new List <LunchBuddy>();

            companions.Add(lunchBuddy2);
            companions.Add(lunchBuddy3);
            companions.Add(lunchBuddy4);

            lunchBuddy.eat();
            lunchBuddy.eat("Cocoa Crispies");
            lunchBuddy.eat(companions);
            lunchBuddy.eat("Cocoa Crispies", companions);
        }
Example #9
0
        static void Main(string[] args)
        {
            var kay = new LunchBuddy("Kay", "Thomas");

            kay.Eat();
            kay.Eat("Hot Chicken");

            var marie = new LunchBuddy("Marie", "Thomas");
            var earl  = new LunchBuddy("Earl", "Thomas");

            var companions = new List <LunchBuddy> {
            };

            companions.Add(marie);
            companions.Add(earl);

            kay.Eat(companions);
            kay.Eat("Chicken", companions);
        }
Example #10
0
        static void Main(string[] args)
        {
            LunchBuddy fred    = new LunchBuddy("Fred", "Rogers");
            LunchBuddy daphne  = new LunchBuddy("Daphne", "Porter");
            LunchBuddy melissa = new LunchBuddy("Melissa", "Swann");
            LunchBuddy thomas  = new LunchBuddy("Thomas", "Nickle");

            List <LunchBuddy> companions = new List <LunchBuddy> {
            };

            companions.Add(fred);
            companions.Add(daphne);
            companions.Add(melissa);

            fred.Eat();
            daphne.Eat("leftover lasagna");
            thomas.Eat(companions);
            thomas.Eat("thai food", companions);
        }
Example #11
0
        static void Main(string[] args)
        {
            var lunchBuddy = new LunchBuddy("Spike", "Lee");

            lunchBuddy.eat();
            lunchBuddy.eat("pizza");
            lunchBuddy.eat(new List <LunchBuddy>
            {
                new LunchBuddy("Deddrick", "Perry"),
                new LunchBuddy("Carla", "Patton"),
                new LunchBuddy("Pierre", "Keys")
            });

            lunchBuddy.eat("nachos", new List <LunchBuddy>
            {
                new LunchBuddy("Pamela", "Patton"),
                new LunchBuddy("Imani", "Ross"),
                new LunchBuddy("Logan", "Ross")
            });
        }
Example #12
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            var john = new LunchBuddy("John", "Fleming");
            var anca = new LunchBuddy("Anca", "Simon");
            var liza = new LunchBuddy("Liza", "Star");
            var zac  = new LunchBuddy("Zac", "Crumpton");


            var companions = new List <LunchBuddy>();

            companions.Add(anca);
            companions.Add(liza);
            companions.Add(zac);

            john.Eat();
            john.Eat("tacos");
            john.Eat(companions);
            john.Eat("tacos", companions);
        }
Example #13
0
        static void Main(string[] args)
        {
            LunchBuddy lunchBuddy1 = new LunchBuddy("John", "Johnson");
            LunchBuddy lunchBuddy2 = new LunchBuddy("Devon", "Johnson");
            LunchBuddy lunchBuddy3 = new LunchBuddy("Dylan", "Johnson");
            LunchBuddy lunchBuddy4 = new LunchBuddy("Kalei", "Johnson");

            List <LunchBuddy> companions = new List <LunchBuddy> {
            };

            companions.Add(lunchBuddy1);
            companions.Add(lunchBuddy2);
            companions.Add(lunchBuddy3);
            companions.Add(lunchBuddy4);

            lunchBuddy1.Eat();
            lunchBuddy2.Eat("Tuna Salad");
            lunchBuddy3.Eat(companions);
            lunchBuddy4.Eat("Spaghetti", companions);
            Console.ReadLine();
        }
Example #14
0
        static void Main(string[] args)
        {
            List <LunchBuddy> companions = new List <LunchBuddy> {
            };

            companions.Add(new LunchBuddy("Poo", "Poo"));
            companions.Add(new LunchBuddy("Shoo", "Fly"));
            companions.Add(new LunchBuddy("Peter", "Pan"));

            var lunchBuddy = new LunchBuddy("Po", "Do");
            var resto      = new Restaurant();


            lunchBuddy.Eat();
            lunchBuddy.EatFood("sandwich");
            lunchBuddy.Eat(companions);
            lunchBuddy.Eat("hamburgers", companions);
            // below code to make sure getting random restaurants
            //Console.WriteLine(resto.Name);
            //Console.ReadLine();
        }
Example #15
0
        static void Main(string[] args)
        {
            List <LunchBuddy> companions = new List <LunchBuddy> {
            };

            var lunchBud1 = new LunchBuddy("Joe", "Schmoe");
            var lunchBud2 = new LunchBuddy("Laura", "Downing");
            var lunchBud3 = new LunchBuddy("Alice", "Smith");
            var lunchBud4 = new LunchBuddy("Stevie", "Jones");

            companions.Add(lunchBud1);
            companions.Add(lunchBud2);
            companions.Add(lunchBud3);
            companions.Add(lunchBud4);

            var LunchBuddy1 = new LunchBuddy("Mike", "Smith");

            LunchBuddy1.Eat();
            LunchBuddy1.Eat("tacos");
            lunchBud4.Eat(companions);
            LunchBuddy1.Eat("burritos", companions);
        }
Example #16
0
        static void Main(string[] args)
        {
            var buddy  = new LunchBuddy("Sam", "M");
            var buddy2 = new LunchBuddy("Dana", "J");
            var buddy3 = new LunchBuddy("Kaitlyn", "T");
            var buddy4 = new LunchBuddy("Nathan", "G");
            var buddy5 = new LunchBuddy("Jameka", "Name");
            var buddy6 = new LunchBuddy("Dylan", "F");

            List <LunchBuddy> companions = new List <LunchBuddy>();

            companions.Add(buddy);
            companions.Add(buddy2);
            companions.Add(buddy3);
            companions.Add(buddy4);
            companions.Add(buddy5);
            companions.Add(buddy6);

            buddy.Eat();
            buddy.Eat("Pizza");
            buddy.Eat(companions);
            buddy.Eat("Pizza", companions);
        }
Example #17
0
        static void Main(string[] args)
        {
            var buddy  = new LunchBuddy("Liza", "Star");
            var buddy1 = new LunchBuddy("Lori", "Star");
            var buddy2 = new LunchBuddy("Julie", "Quittner");
            var buddy3 = new LunchBuddy("Stacey", "Quittner");

            var companions = new List <LunchBuddy>();

            companions.Add(buddy1);
            companions.Add(buddy2);
            companions.Add(buddy3);

            var rest = new Restaurant();

            buddy.Eat(rest);

            buddy.Eat(rest, "a cheese plate");

            buddy.Eat(companions);

            buddy.Eat("pie", companions);
        }
Example #18
0
 static void Main(string[] args)
 {
     var lunchBuddy = new LunchBuddy("Randy", "Watson");
     var resturant  = new Resturant();
 }
Example #19
0
        static void Main(string[] args)
        {
            var restaurantOne = new Restaurant();



            ///// had these as var

            LunchBuddy lunchBuddyOne   = new LunchBuddy("Scout", "Spainhour");
            LunchBuddy lunchBuddyTwo   = new LunchBuddy("Jimbo", "McLean");
            LunchBuddy lunchBuddyThree = new LunchBuddy("Cindy", "Bender");


            List <LunchBuddy> lunchCompanions = new List <LunchBuddy>();

            lunchCompanions.Add(lunchBuddyOne);
            lunchCompanions.Add(lunchBuddyTwo);
            lunchCompanions.Add(lunchBuddyThree);



            // 1
            Console.WriteLine(@"lunchBuddyOne.Eat()");
            lunchBuddyTwo.Eat();



            Console.WriteLine(new string('-', 50));



            // 2
            Console.WriteLine("lunchBuddyOne.Eat(string food)");
            lunchBuddyOne.Eat("Pizza");



            Console.WriteLine(new string('-', 50));



            // 3
            Console.WriteLine(@"lunchBuddyOne.Eat(companions)");
            lunchBuddyThree.Eat(lunchCompanions);



            Console.WriteLine(new string('-', 50));



            // 4
            Console.WriteLine(@"lunchBuddyOne.Eat(string food, List<LunchBuddy> companions)");
            lunchBuddyThree.Eat("burgers", lunchCompanions);



            Console.WriteLine(new string('-', 50));



            //var restaurantTwo = new Restaurant();

            //var lunchBuddyTwo = new LunchBuddy("Jimbo", "McLean");

            //lunchBuddyTwo.Eat("burgers");

            ////var lunchItemTwo = new LunchBuddy.Eat("Burgers");

            ////Eat("Burgers");

            //Console.WriteLine($"My lunch plans on Tuesday are with {lunchBuddyTwo.FirstName} {lunchBuddyTwo.LastName} and we might go to {restaurantTwo.Name} to eat {lunchBuddyTwo.Eat()}.");

            Console.ReadKey();
        }