Exemple #1
0
        static void Main(string[] args)
        {
            List <HeadPhone> db = new List <HeadPhone>
            {
                new HeadPhone(0, "Xiaomi Piston 3", 3, false),
                new HeadPhone(1, "Beats Solo2 Wireless", 1, false),
                new HeadPhone(2, "Marshall Major II", 6, false)
            };


            Service    compToCopy     = new Service(db);
            Controller compController = new Controller(compToCopy);
            Reception  compReception  = new Reception(compToCopy, compController);



            compReception.MakeOrder("Sony SBH70", 3);
            compReception.MakeOrder("Philips SHE3590", 1);
            compReception.MakeOrder("Fiio F9 Pro", 6);

            compReception.Display();

            compReception.Check(5, 6);

            Console.ReadKey();
        }