示例#1
0
        static void Main(string[] args)
        {
            RealCustomer customer1 = new RealCustomer();

            customer1.Id         = 1;
            customer1.CustomerNo = "12345";
            customer1.Name       = "Beyza";
            customer1.Surname    = "Yayla";
            customer1.TcNo       = "1234567890";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id          = 2;
            customer2.CustomerNo  = "54321";
            customer2.CompanyName = "Kodlama.io";
            customer2.TaxNo       = "12345678945";

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
示例#2
0
        static void Main(string[] args)
        {
            RealCustomer customer1 = new RealCustomer();

            customer1.CustomerNo = "12345";
            customer1.Name       = "Guney";
            customer1.Surname    = "Sanli";
            customer1.Id         = 1;
            customer1.IdNo       = "123";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.CustomerNo  = "21342";
            customer2.CompanyName = "Coder.io";
            customer2.Id          = 2;
            customer2.TaxNo       = "1323";

            //Gerçek müsteri - tüzel müsteri
            //SOLID - L

            Customer customer3 = new RealCustomer();         //new refence
            Customer customer4 = new LegalCustomer();


            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
            customerManager.Add(customer3);
            customerManager.Add(customer4);
        }
示例#3
0
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer();

            customer1.CustomerNo = "12345";
            customer1.CustomerId = 1;
            customer1.Name       = "Berkay";
            customer1.Surname    = "Akkaya";
            customer1.TcNumber   = "1556256525";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.CustomerId  = 2;
            customer2.CustomerNo  = "54231";
            customer2.CompanyName = "Apple";
            customer2.TaxNumber   = "1456628";

            Customer customer3 = new IndividualCustomer();
            Customer customer4 = new LegalCustomer();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
示例#4
0
        static void Main(string[] args)
        {
            // Gerçek müşteri -- Tüzel Müşteri
            //SOLID



            RealCustomer customer = new RealCustomer();

            customer.Id             = 1;
            customer.CustomerNumber = 12345;
            customer.FirstName      = "Ersin";
            customer.LastName       = "Alp";
            customer.TcNo           = "123456788990";



            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id             = 2;
            customer2.CompanyName    = "Creade Technology";
            customer2.CustomerNumber = 654543;
            customer2.TaxNumber      = "1236543453";

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();


            CustomerManeger customerManeger = new CustomerManeger();

            customerManeger.Add(customer);
            customerManeger.Add(customer2);
        }
示例#5
0
        static void Main(string[] args)
        {
            RealCustomer customer1 = new RealCustomer();

            customer1.Id         = 1;
            customer1.CustomerNo = "12345";
            customer1.FirstName  = "Aysu";
            customer1.LastName   = "Gökcen";
            customer1.TcNumb     = "12345678910";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id          = 2;
            customer2.CustomerNo  = "54321";
            customer2.CompanyName = "Kodlama.io";
            customer2.TaxNumb     = "1234567890";

            //Gerçek-Tüzel
            //SOLID

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
示例#6
0
        static void Main(string[] args)
        {
            //müşteri kişi olduğunda CompanyName sıkıntı olur.
            RealCustomer customer1 = new RealCustomer();

            customer1.Id             = 1;
            customer1.CustomerNumber = "12345";
            customer1.FirtsName      = "ismail";
            customer1.LastName       = "demirci";
            customer1.TcNo           = "123456789";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id             = 2;
            customer2.CompanyName    = "Youtube";
            customer2.TaxNumber      = "124563";
            customer2.CustomerNumber = "123456";



            //Gerçek-Tüzel
            //SOLID

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();
            //Customer ikisininde referansını tutabiliyor çünkü ebeveyn

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
            customerManager.Add(customer3);
            //oluşturulan tüm müşterileri yollayabiliyoruz
        }
示例#7
0
        static void Main(string[] args)
        {
            //Emre Aka
            RealCustomer customer1 = new RealCustomer();

            customer1.Id               = 1;
            customer1.CustomerNo       = "12345";
            customer1.CustomerName     = "Emre";
            customer1.CustomerLastName = "Aka";
            customer1.SocialSecurityNo = "123456789";
            //Kodlama.io
            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id          = 2;
            customer2.CustomerNo  = "51234";
            customer2.CompanyName = "Kodlama.io";
            customer2.TaxNo       = "123634213";
            //Real customer - Legal costomer
            //SOLID

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
示例#8
0
        static void Main(string[] args)
        {
            RealCustomer customer1 = new RealCustomer();

            customer1.Id         = 1;
            customer1.CustomerNo = "12345";
            customer1.FirstName  = "Raşit";
            customer1.LastName   = "ALIMCI";
            customer1.TcNo       = "11111111111";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id          = 2;
            customer2.CustomerNo  = "123456";
            customer2.CompanyName = "ALIMCI HOLDİNG";
            customer2.TaxNo       = "2222222222";

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
            customerManager.Add(customer3);
            customerManager.Add(customer4);
        }
示例#9
0
        static void Main(string[] args)
        {
            RealCustomer customer1 = new RealCustomer();

            customer1.Id             = 2;
            customer1.CustomerNumber = "12345";
            customer1.Name           = "ibrahim";
            customer1.LastName       = "Alzamel";
            customer1.TcNumber       = "0123456789";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id             = 2;
            customer2.CustomerNumber = "54321";
            customer2.CompanyNumber  = "alzamel";
            customer2.TaxNumber      = "1234567890";

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
            customerManager.Add(customer3);
            customerManager.Add(customer4);
        }
示例#10
0
        static void Main(string[] args)
        {
            RealCustomer customer1 = new RealCustomer();

            customer1.Id         = 1;
            customer1.CustomerId = "12345";
            customer1.Name       = "Aleyna";
            customer1.Surname    = "Senozan";
            customer1.ID_no      = "12345678910";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.Id          = 2;
            customer2.CustomerId  = "54321";
            customer2.CompanyName = "Creative.io";
            customer2.TaxNumber   = "1234567890";

            Customer customer3 = new RealCustomer();
            Customer customer4 = new LegalCustomer();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
示例#11
0
        static void Main(string[] args)
        {
            RealCustomer customer1 = new RealCustomer();

            customer1.CustomerId      = 1;
            customer1.CustomerNo      = "00001";
            customer1.TcNo            = "444444444444";
            customer1.CustomerName    = "Ahmet";
            customer1.CustomerSurname = "Tanrıkulu";

            LegalCustomer customer2 = new LegalCustomer();

            customer2.CustomerId  = 2;
            customer2.CustomerNo  = "00002";
            customer2.TaxNo       = "1234567890";
            customer2.CompanyName = "Tannet";

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
        }