Add() public method

public Add ( OOP2.Musteri musteri ) : void
musteri OOP2.Musteri
return void
Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer();

            customer1.Id         = 1;
            customer1.CustomerNo = "12345";
            customer1.Name       = "Ozan";
            customer1.Surname    = "Şengül";
            customer1.TCNo       = "12345678910";

            //cannot use Customer class
            CorporateCustomer customer2 = new CorporateCustomer();

            customer2.Id          = 2;
            customer2.CustomerNo  = "12346";
            customer2.CompanyName = "Pluto Has Eyes";
            customer2.TaxNo       = "1234567890";

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer2);
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Customer customer1 = new CorporateCustomer
            {
                CustomerID     = 1,
                CustomerNumber = "44521565662",
                CompanyName    = "Cocoon",
                TaxIDNumber    = "55659898965"
            };

            Customer customer2 = new GeneralCustomer
            {
                CustomerID       = 1,
                CustomerNumber   = "2545512141",
                CustomerName     = "Kübra",
                CustomerLastName = "Terzi"
            };

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer2);
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            GercekMusteri musteri1 = new GercekMusteri();

            musteri1.Id        = 1;
            musteri1.MusteriNo = "12345";
            musteri1.Adi       = "Engin";
            musteri1.Soyadi    = "Demiroğ";
            musteri1.TcNo      = "1234567980";

            TuzelMusteri musteri2 = new TuzelMusteri();

            musteri2.Id        = 2;
            musteri2.MusteriNo = "54325";
            musteri2.SirketAdi = "Kodlama.io";
            musteri2.VergiNo   = "21545125154";

            Musteri musteri3 = new GercekMusteri();
            Musteri musteri4 = new TuzelMusteri();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(musteri4);
        }
Ejemplo n.º 5
0
        static void Main(string[] args)
        {
            IndividualCustomer ındividualCustomer1 = new IndividualCustomer();

            ındividualCustomer1.CustomerNumber = "12355";
            ındividualCustomer1.FirstName      = "Furkan";
            ındividualCustomer1.LastName       = "Biçer";
            ındividualCustomer1.TcNo           = "1234567890";

            CorporateClient corporateClien1 = new CorporateClient();

            corporateClien1.Id             = 2;
            corporateClien1.CompanyName    = "Kodlama.io";
            corporateClien1.TaxNumber      = "12345678";
            corporateClien1.CustomerNumber = "1234";


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

            CustomerManager customerManager = new CustomerManager();

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

            customer1.ID             = 1;
            customer1.CustomerNumber = "13232";
            customer1.Name           = "Engin";
            customer1.Surname        = "Demiroğ";
            customer1.TCNo           = "1234567790";

            CorporateCustomer customer2 = new CorporateCustomer();

            customer2.ID             = 2;
            customer2.CustomerNumber = "234234";
            customer2.CompanyName    = "Kodlama.io";
            customer2.TaxNo          = "1345676543";

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

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
        }
Ejemplo n.º 7
0
        static void Main(string[] args)
        {
            IndividualCustomer customerOne = new IndividualCustomer();

            customerOne.Id             = 1;
            customerOne.Name           = "İbrahim";
            customerOne.Surname        = "Doğuş";
            customerOne.TCKN           = "222222222222";
            customerOne.CustomerNumber = "12345";

            CorporateCustomer customerTwo = new CorporateCustomer();

            customerTwo.Id             = 2;
            customerTwo.CustomerNumber = "54234";
            customerTwo.CompanyName    = "Doğuş Yazılım";
            customerTwo.TaxNumber      = "12341050";

            Customer customer = customerOne;


            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customerTwo);
        }