Пример #1
0
        static void Main(string[] args)
        {
            List <IInstrument> MetallicaInstruments = new List <IInstrument>();

            MetallicaInstruments.Add(new Guitar());
            MetallicaInstruments.Add(new Guitar());
            MetallicaInstruments.Add(new BassGuitar());
            MetallicaInstruments.Add(new Drums());
            MetallicaInstruments.Add(new Vocal());
            var Metallica = new RockBand(MetallicaInstruments);

            List <IInstrument> ColdplayInstruments = new List <IInstrument>();

            ColdplayInstruments.Add(new Guitar());
            ColdplayInstruments.Add(new BassGuitar());
            ColdplayInstruments.Add(new Drums());
            ColdplayInstruments.Add(new Vocal());
            ColdplayInstruments.Add(new Keyboard());

            var Coldplay = new RockBand(ColdplayInstruments);

            Metallica.DoSoundCheck();
            Coldplay.DoSoundCheck();

            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var metallicaInstruments = new List <IInstrument>();

            metallicaInstruments.Add(new Guitar());
            metallicaInstruments.Add(new Guitar());
            metallicaInstruments.Add(new BassGuitar());
            metallicaInstruments.Add(new Drums());
            metallicaInstruments.Add(new Vocal());

            var metallica = new RockBand(metallicaInstruments);

            metallica.DoSoundCheck();

            var coldplayInstruments = new List <IInstrument>();

            coldplayInstruments.Add(new Guitar());
            coldplayInstruments.Add(new BassGuitar());
            coldplayInstruments.Add(new Drums());
            coldplayInstruments.Add(new Vocal());
            coldplayInstruments.Add(new Keyboard());

            var coldplay = new RockBand(coldplayInstruments);

            coldplay.DoSoundCheck();

            Console.ReadKey();
        }
Пример #3
0
        static void Main(string[] args)
        {
            var rockBand = new RockBand();

            rockBand.DoSoundCheck();
            Console.ReadLine();
        }
Пример #4
0
        /** Testing 123 */
        static void Main()
        {
            BandLocator bandLocator = new BandLocator();
            RockBand    rockBand    = bandLocator.Metallica;

            rockBand.DoSoundCheck();

            Console.ReadLine();
        }
Пример #5
0
        static void Main(string[] args)
        {
            var rockBand1 = new RockBand(new Guitar(), new Guitar(), new BassGuitar(), new Drums(), new Vocal());
            var rockBand2 = new RockBand(new Guitar(), new BassGuitar(), new Drums(), new Vocal(), new Keyboard());

            Console.WriteLine("--band 1---");
            rockBand1.DoSoundCheck();
            Console.WriteLine("--band 2---");
            rockBand2.DoSoundCheck();
            Console.ReadLine();
        }