Esempio n. 1
0
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.Ad        = "Ayşe";
            musteri1.Soyad     = "Yıldızzzz";
            musteri1.Id        = 1;
            musteri1.MusteriNo = "123456";

            Musteri musteri2 = new Musteri();

            musteri2.Ad        = "Fatma";
            musteri2.Soyad     = "sajdghj";
            musteri2.Id        = 2;
            musteri2.MusteriNo = "345678";

            Musteri musteri3 = new Musteri();

            musteri3.Ad        = "Elif";
            musteri3.Soyad     = "Öztürk";
            musteri3.Id        = 3;
            musteri3.MusteriNo = "234567";

            Musteri[] musteriler = new Musteri[] { musteri1, musteri2, musteri3 };

            MusteriManager musteriManager = new MusteriManager();

            musteriManager.CustomerAdd(musteri1);
            musteriManager.CustomerDelete(musteri2);
            musteriManager.CustomerList(musteriler);


            Console.WriteLine("Hello World!");
            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Customer customer1 = new Customer();

            customer1.customerName        = "Furkan";
            customer1.custonmerSurname    = "ÇERİ";
            customer1.customerPhoneNumber = "+90(555)555 55 55";
            customer1.customerEmail       = "*****@*****.**";
            customer1.customerAge         = 26;
            customer1.customerBalance     = 47.549;

            Customer customer2 = new Customer();

            customer2.customerName        = "Ahmet";
            customer2.custonmerSurname    = "KOLCU";
            customer2.customerPhoneNumber = "+90(444)444 44 44";
            customer2.customerEmail       = "*****@*****.**";
            customer2.customerAge         = 16;
            customer2.customerBalance     = 479.549;

            Customer customer3 = new Customer();

            customer3.customerName        = "Aslı";
            customer3.custonmerSurname    = "SÜZEN";
            customer3.customerPhoneNumber = "+90(333)333 33 33";
            customer3.customerEmail       = "*****@*****.**";
            customer3.customerAge         = 19;
            customer3.customerBalance     = 9.549;

            Customer customer4 = new Customer();

            customer4.customerName        = "Burak";
            customer4.custonmerSurname    = "AHTAPOT";
            customer4.customerPhoneNumber = "+90(222)222 22 22";
            customer4.customerEmail       = "*****@*****.**";
            customer4.customerAge         = 42;
            customer4.customerBalance     = 80.549;
            Customer[]     customers       = new Customer[] { customer1, customer2, customer3, customer4 };
            MusteriManager customerManager = new MusteriManager();

            customerManager.CustomerAdd(customer1);
            customerManager.CustomerDelete(customer2);
            customerManager.CustomerList(customers);
            Console.WriteLine();
        }