Exemplo n.º 1
0
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer();

            customer1.Id         = 1;
            customer1.CustomerNo = "12345";
            customer1.Name       = "Nuri";
            customer1.Surname    = "Urtekin";
            customer1.TcNo       = "24968118188";

            CorporateCustomer customer2 = new CorporateCustomer();

            customer2.Id          = 2;
            customer2.CustomerNo  = "12346";
            customer2.CompanyName = "Urtekin Mobilya";
            customer2.TaxNo       = "1234567890";

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

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
            customerManager.Add(customer3);
            customerManager.Add(customer4);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //Bireysel müşteri
            IndividualCustomer customer = new IndividualCustomer();

            customer.Id               = 1;
            customer.CustomerNo       = "2331";
            customer.CustomerName     = "Ahmet";
            customer.CustomerLastname = "Dalhançer";

            //Tüzel müşteri
            CorporateCustomer corporate = new CorporateCustomer();

            corporate.Id          = 1;
            corporate.CustomerNo  = "56";
            corporate.CompanyName = "Efinans";
            corporate.CompanyVkn  = "1234567892";

            //customer evebeyn olduğu için her iki class'ın da referansını tutabilir
            Customer customer1 = new CorporateCustomer();
            Customer customer2 = new IndividualCustomer();

            //Manager sınıfı bizden müşteri istediği için biz hem gerçek hem de tüzel kişiyi gönderebiliyoruz.Çünkü Customer her ikisinin de evebeyni
            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer();

            customer1.Id         = 1;
            customer1.CustomerNo = "123456";
            customer1.Name       = "Ersin";
            customer1.Surname    = "AKYÜZ";
            customer1.TcNo       = "21211321313110";


            CorporateCustomer customer2 = new CorporateCustomer();

            customer2.Id            = 2;
            customer2.CustomerNo    = "555550";
            customer2.CorporateName = "Medipa";

            Customer        customer3       = new IndividualCustomer();
            Customer        customer4       = new CorporateCustomer();
            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
            customerManager.Add(customer3);
            customerManager.Add(customer4);



            Console.ReadLine();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer()
            {
                Id = 1, CustomerId = "1234", Name = "Gülden", Surname = "Sönmez", TcNumber = "12345678900"
            };
            CorporateCustomer customer2 = new CorporateCustomer()
            {
                Id = 2, CustomerId = "2345", TaxNumber = "111111", CompanyName = "Casper"
            };

            CustomerManager customerManager = new CustomerManager();
        }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer();

            customer1.Id             = 1;
            customer1.CustomerNumber = "1234";
            customer1.Name           = "Semih";
            customer1.LastName       = "Kun";
            customer1.TcNo           = "1234567890";

            CorporateCustomer customer2 = new CorporateCustomer();

            customer2.CompanyName    = "S Design";
            customer2.CustomerNumber = "222";
            customer2.Id             = 2;
            customer2.TaxNumber      = "0987654321";

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

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
        }