Exemplo n.º 1
0
        static void Main(string[] args)
        {
            List <IDreamTeam> ServerSide = new List <IDreamTeam>()
            {
            };
            List <IDreamTeam> ClientSide = new List <IDreamTeam>()
            {
            };

            Beyonce   beyonce = new Beyonce("Beyonce", "Kween", "Being the Kween");
            Daenaryus dany    = new Daenaryus("Daenaryus", "Stormborn", "Dragon Riding");
            JonSnow   jon     = new JonSnow("Jon", "Snow", "Lord Commander");
            Madeline  mad     = new Madeline("Madeline", "Power", "Making Oven Cookies");
            Jackie    jackie  = new Jackie("Jackie", "Knight", "Spongebob knowledge");
            Kathy     kathy   = new Kathy("Kathy", "Weisensel", "Sarcasm");

            ServerSide.Add(beyonce);
            ServerSide.Add(dany);
            ServerSide.Add(jon);
            ClientSide.Add(mad);
            ClientSide.Add(jackie);
            ClientSide.Add(kathy);

            Console.WriteLine("SERVER SIDE");
            foreach (IDreamTeam person in ServerSide)
            {
                Console.WriteLine(person);
            }
            Console.WriteLine("-------------");
            Console.WriteLine("CLIENT SIDE");
            foreach (IDreamTeam person in ClientSide)
            {
                Console.WriteLine(person);
            }
            Console.WriteLine("-------------");
            Console.WriteLine("NOW LETS WERRRRRKKKKKKK");
            foreach (IDreamTeam person in ServerSide)
            {
                person.Work();
            }
            foreach (IDreamTeam person in ClientSide)
            {
                person.Work();
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Kathy    kathy1    = new Kathy("Kathy", "Weisensel", "asking about your dog");
            Tamela   tamela1   = new Tamela("Tamela", "Lerma", "ordering another drink");
            Eliza    eliza1    = new Eliza("Eliza", "Meeks", "wrangling");
            Jackie   jackie1   = new Jackie("Jackie", "Knight", "coding binges");
            Madeline madeline1 = new Madeline("Madeline", "Power", "keepin it classy");
            Chaz     chaz1     = new Chaz("Chaz", "Henricks", "projecting his voice");

            List <IDreamTeam> serverSide = new List <IDreamTeam>();

            serverSide.Add((kathy1));
            serverSide.Add((eliza1));
            serverSide.Add((madeline1));

            List <IDreamTeam> clientSide = new List <IDreamTeam>();

            clientSide.Add((chaz1));
            clientSide.Add((jackie1));
            clientSide.Add((tamela1));

            Console.WriteLine("My client side Dream Team and their specialities:");
            foreach (IDreamTeam item in clientSide)
            {
                Console.WriteLine($"{item.FirstName} {item.LastName} --- {item.Speciality}");
            }
            Console.WriteLine("\n");
            Console.WriteLine("My server side Dream Team and their specialities");
            foreach (IDreamTeam item in serverSide)
            {
                Console.WriteLine($"{item.FirstName} {item.LastName} --- {item.Speciality}");
            }
            Console.WriteLine("\n");
            Console.WriteLine("How does each person contribute to the Dream Team?");
            foreach (IDreamTeam item in clientSide)
            {
                item.Work();
            }
            foreach (IDreamTeam item in serverSide)
            {
                item.Work();
            }
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Ben      ben      = new Ben();
            Chaz     chaz     = new Chaz();
            Jordan   jordan   = new Jordan();
            Madeline madeline = new Madeline();
            Matt     matt     = new Matt();
            Mitchell mitchell = new Mitchell();

            List <IDreamTeam> clientSide = new List <IDreamTeam>()
            {
            };

            clientSide.Add(ben);
            clientSide.Add(chaz);
            clientSide.Add(jordan);

            List <IDreamTeam> serverSide = new List <IDreamTeam>()
            {
            };

            serverSide.Add(madeline);
            serverSide.Add(matt);
            serverSide.Add(mitchell);

            Console.WriteLine("Client Side teammates: ");
            foreach (IDreamTeam teammate in clientSide)
            {
                Console.WriteLine(teammate.FullName);
            }

            Console.WriteLine("Server Side teammates: ");
            foreach (IDreamTeam teammate in serverSide)
            {
                Console.WriteLine(teammate.FullName);
            }
        }