Esempio n. 1
0
        static void Main(string[] args)
        {
            //Gerçek müşteri
            Individual customer1 = new Individual();

            customer1.Id             = 1;
            customer1.CustomerNumber = "12345";
            customer1.Name           = "Burçin";
            customer1.Surname        = "Kağan";
            customer1.TcNumber       = "12345678900";

            //Tüzel müşteri
            Coorporate customer2 = new Coorporate();

            customer2.Id             = 2;
            customer2.CustomerNumber = "54321";
            customer2.CompanyName    = "Kodlama.io";
            customer2.TaxNumber      = "123456789546";

            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();
            //Customer class'ı hem individual'in hem de Coorporative'in referans numarasını tutar.

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            //Cevat Sarıkaya
            Individual musteriI1 = new Individual();

            musteriI1.Id             = 1;
            musteriI1.CostumerNumber = "12345";
            musteriI1.Name           = "Cevat";
            musteriI1.Surname        = "Sarıkaya";
            musteriI1.TcNumber       = "12345678910";

            //Kodlama.io

            Coorporate musteriC2 = new Coorporate();

            musteriC2.Id             = 2;
            musteriC2.CostumerNumber = "54963";
            musteriC2.CompanyName    = "Kodlama.io";
            musteriC2.TaxId          = "1234567890";

            Costumer musteri3 = new Individual();
            Costumer musteri4 = new Coorporate();

            CostumerManager costumerManager = new CostumerManager();

            costumerManager.Add(musteriI1);
            costumerManager.Add(musteriC2);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Indivicual musteri1 = new Indivicual();

            musteri1.Id                = 1;
            musteri1.CustomerNumber    = "123";
            musteri1.CustomerFirstName = "Emre";
            musteri1.CustomerLastName  = "Çabuk";
            musteri1.TcNo              = "1231";

            Coorporate musteri2 = new Coorporate();

            musteri2.Id              = 2;
            musteri2.CustomerNumber  = "122";
            musteri2.CustomerCompany = "Kodlama.io";
            musteri2.VergiNo         = "1111";



            //Gerçek müşteri - Tüzel müşteri
            //SOLID- L harfi


            Musteri musteri3 = new Indivicual();
            Musteri musteri4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(musteri1);
            customerManager.Add(musteri2);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            //Engin Demiroğ
            Individual customer1 = new Individual();

            customer1.Id         = 1;
            customer1.CustomerNo = "12345";
            customer1.Name       = "Engin";
            customer1.Surname    = "Demiroğ";
            customer1.TcNo       = "12345678910";

            //Kodlama.io
            Coorporate customer2 = new Coorporate();

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

            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

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

            //Gerçek Müşteri -Tüzel Müşteri
            //SOLID
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            //Ediz Züm
            Individual customer = new Individual();

            customer.Id         = 1;
            customer.CustomerNo = "12345";
            customer.Name       = "Ediz";
            customer.SurName    = "Züm";
            customer.TcNo       = "12345678910";

            //Kodlama.io
            Coorporate customer2 = new Coorporate();

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

            //Coorporate - Individual
            //SOLID

            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer);
            customerManager.Add(customer2);
            customerManager.Add(customer3);
            customerManager.Add(customer4);
        }
Esempio n. 6
0
        static void Main(string[] args)
        {
            Individual costumer1 = new Individual();

            costumer1.MusteriNo = "12345";
            costumer1.Adi       = "Üçler";
            costumer1.Soyadi    = "Gönültaş";
            costumer1.TcNo      = "12345678910";
            costumer1.Id        = 1;

            //Kodlama.io

            Coorporate costumer2 = new Coorporate();

            costumer2.Id        = 2;
            costumer2.MusteriNo = "54321";
            costumer2.SirketAdi = "Kodlama.io";
            costumer2.VergiNo   = "1111111111111";

            //Gerçek Müşteri - Tüzel Müşteri bunlar birbiri yerine kullanılamaz.
            //SOLID
            Costumer costumer3 = new Individual();
            Costumer costumer4 = new Coorporate();

            CostumerManager costumerManager = new CostumerManager();

            costumerManager.Add(costumer1);
            costumerManager.Add(costumer2);
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            Individual individual1 = new Individual();

            individual1.Id             = 1;
            individual1.CustomerNumber = "12345";
            individual1.FirstName      = "Murat";
            individual1.LastName       = "yıldız";
            individual1.TcNumber       = "1234678910";

            Coorporate coorporate1 = new Coorporate();

            coorporate1.Id             = 2;
            coorporate1.CustomerNumber = "54455";
            coorporate1.CompanyName    = "CodeNet";
            coorporate1.TaxNumber      = "12322563325";

            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer3);
            customerManager.Add(customer4);
        }
Esempio n. 8
0
        static void Main(string[] args)
        {
            Indıvidual ındıvidual1 = new Indıvidual();

            ındıvidual1.Id        = 12;
            ındıvidual1.MusteriNo = "12345";
            ındıvidual1.Adı       = "Bayram";
            ındıvidual1.Soyadı    = "Taş";
            ındıvidual1.TcNo      = "123456789";


            //  kodlama

            Coorporate coorporate1 = new Coorporate();

            coorporate1.Id        = 45;
            coorporate1.MusteriNo = "54321";
            coorporate1.SirketAdı = "kodlama";
            coorporate1.VergiNo   = "159357";


            Customer customer3 = new Coorporate();
            Customer customer4 = new Indıvidual();

            CustomerManeger customerManeger = new CustomerManeger();

            customerManeger.Add(ındıvidual1);
            customerManeger.Add(coorporate1);
        }
Esempio n. 9
0
        static void Main(string[] args)
        {
            Individual customer1 = new Individual();

            customer1.Id             = 1;
            customer1.FirstName      = "Ayhan";
            customer1.LastName       = "Kahraman";
            customer1.CustomerNumber = 346028;
            customer1.TcNumber       = "8282128223";


            Coorporate customer2 = new Coorporate();

            customer2.Id             = 2;
            customer2.CustomerNumber = 286028;
            customer2.CompanyName    = "Kodlama.io Student";
            customer2.TaxNumber      = "602860";

            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
Esempio n. 10
0
        static void Main(string[] args)
        {
            //Gerçek musteri yucel taskiran
            Individual customer1 = new Individual();

            customer1.Id             = 1;
            customer1.CustomerNumber = "12345";
            customer1.Name           = "Yucel";
            customer1.Surname        = "Taskiran";
            customer1.IdentityNumber = "12345678910";


            //Tüzel müşteri - Kodlama.io
            Coorporate customer2 = new Coorporate();

            customer2.Id             = 2;
            customer2.CustomerNumber = "54321";
            customer2.CompanyName    = "Kodlama.io";
            customer2.TaxNumber      = "1234567890";


            //Gerçek Müşteri - Tüzel Müşteri
            //SOLID

            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
Esempio n. 11
0
        static void Main(string[] args)
        {
            //Gerçek kişi
            Individual individual1 = new Individual();

            individual1.Id             = 1;
            individual1.CustomerNumber = "12345";
            individual1.FirstName      = "Recep";
            individual1.LastName       = "Çiğdem";
            individual1.IdentityNumber = "234565567567";

            //Tüzel Kişi
            Coorporate coorporate1 = new Coorporate();

            coorporate1.Id             = 2;
            coorporate1.CustomerNumber = "544312";
            coorporate1.CompanyName    = "RecepÇiğdem A.Ş";
            coorporate1.TaxNo          = "1233243676567";


            Customer customer4 = new Individual();

            Customer customer3 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(individual1);
            customerManager.Add(coorporate1);
        }
Esempio n. 12
0
        static void Main(string[] args)
        {
            Individual customer1 = new Individual();

            customer1.Id         = 1;
            customer1.CustomerNo = "12345";
            customer1.Name       = "Ali";
            customer1.Surname    = "Kürşad";
            customer1.TcNo       = "123456789";


            Coorporate customer2 = new Coorporate();

            customer2.Id          = 2;
            customer2.CustomerNo  = "67890";
            customer2.CompanyName = "Kodlama.io";
            customer2.TaxNo       = "123456";


            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
Esempio n. 13
0
        static void Main(string[] args)
        {
            // Gürkan Altunok
            Individual customer1 = new Individual();

            customer1.Id             = 1;
            customer1.CustomerNumber = "12345";
            customer1.FirstName      = "Gürkan";
            customer1.LastName       = "Altunok";
            customer1.TcNo           = "123456789123";

            //Kodlama.io
            Coorporate customer2 = new Coorporate();

            customer2.Id             = 2;
            customer2.CompanyName    = "Kodlama.io";
            customer2.TaxNumber      = "1234567";
            customer1.CustomerNumber = "532785";

            //SOLID

            Customer customer3 = new Individual();
            Customer customer4 = new Coorporate();

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }
Esempio n. 14
0
        static void Main(string[] args)
        {   //Metehan Yetkin
            Individual ındividual = new Individual();

            ındividual.CustomerNo          = "12345";
            ındividual.CustomerName        = "Metehan";
            ındividual.CustomerSurname     = "Yetkin";
            ındividual.CustomerIndentityNo = "10101010010";

            //Kodlama.io
            Coorporate coorporate = new Coorporate();

            coorporate.CustomerId  = 2;
            coorporate.CustomerNo  = "54321";
            coorporate.CompanyName = "Kodlama.İo";
            coorporate.TaxNo       = "1234567890";


            //Gerçek-Tüzel  (birbirlerine benziyor diye aynı yerde kullanılamazlar.)
            //SOLID

            Customer customer  = new Individual(); //NEW Bellekteki bir referans numarasıdır
            Customer customer1 = new Coorporate(); //Customer classı hem Individual classın referansını tutabiliyor
                                                   //Hem de Coorporate sınıfının referansını tutabiliyor.


            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(ındividual);
            customerManager.Add(coorporate);
            customerManager.Add(customer);
            customerManager.Add(customer1);
        }
Esempio n. 15
0
        static void Main(string[] args)
        {
            Individual individual = new Individual()
            {
                Id         = 0,
                CustomerNo = "123",
                IdentityNo = "22222222222",
                Name       = "Emre",
                SurName    = "ÇİÇEK"
            };
            Individual individual1 = new Individual()
            {
                Id         = 1,
                CustomerNo = "1234",
                IdentityNo = "22222222223",
                Name       = "Yunus",
                SurName    = "ÇİÇEK"
            };
            Coorporate coorporate = new Coorporate()
            {
                Id         = 0,
                CustomerNo = "345",
                Name       = "TürkNet",
                TaxNo      = "123456789"
            };

            Customer customer2 = new Individual();
            Customer customer3 = new Coorporate();


            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer2);
        }
Esempio n. 16
0
        static void Main(string[] args)
        {
            Individual individual1 = new Individual();

            individual1.ID             = 1;
            individual1.CustomerNumber = "12345";
            individual1.Name           = "Ali";
            individual1.Surname        = "Dinç";
            individual1.TcNo           = "11111111111";


            Coorporate coorporate2 = new Coorporate();

            coorporate2.ID             = 2;
            coorporate2.CustomerNumber = "54321";
            coorporate2.SirketAdi      = "Dinç Holding";
            coorporate2.VergiNo        = "ABC123456789";


            Customer customer4 = new Individual();
            Customer customer5 = new Coorporate();


            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(individual1);
            customerManager.Add(coorporate2);
        }
Esempio n. 17
0
        static void Main(string[] args)
        {
            Individual c1 = new Individual();
            {
                c1.Id         = 1;
                c1.CustomerId = "1234";
                c1.FirtsName  = "Mahmut";
                c1.LastName   = "Düldül";
                c1.TcNo       = "1234";



                //kodlama io

                Coorporate c2 = new Coorporate();
                {
                    c2.Id          = 2;
                    c2.CustomerId  = "12345";
                    c2.CompanyName = "Duldul.turizm";
                    c2.VergiNo     = "12345";
                }



                Customer c3 = new Individual();
                Customer c4 = new Coorporate();

                CustomerManager customerManager = new CustomerManager();
                customerManager.Add(c1);
                customerManager.Add(c2);
                customerManager.Add(c3);
                customerManager.Add(c4);
            }
        }
Esempio n. 18
0
        static void Main(string[] args)
        {
            Individual individual1 = new Individual();

            individual1.Name           = "Engin";
            individual1.Name           = "Demiroğ";
            individual1.CustumerNumber = "45454";

            // kodlama io:
            Coorporate coorporate1 = new Coorporate();

            coorporate1.CompanyName    = "KodlamaIo";
            coorporate1.CustumerNumber = "54545";
            coorporate1.TaxNumber      = "45454";


            //Gerçek Müşteri- Tüzel Müşteri birbirinin yerine kullanılmaz
            //SOLID "L" söyler.


            Customer customer3 = new Coorporate();
            Customer customer4 = new Individual();
        }
Esempio n. 19
0
        static void Main(string[] args)
        {
            // Engin Demiroğ

            Indıvidual ındıvidual1 = new Indıvidual();

            ındıvidual1.Id             = 14;
            ındıvidual1.CustomerNumber = "12345";
            ındıvidual1.Name           = "Engin";
            ındıvidual1.LastName       = "Demiroğ";
            ındıvidual1.TcNumber       = "22222222222";

            // Kodlama.io

            Coorporate coorporate1 = new Coorporate();

            coorporate1.Id             = 15;
            coorporate1.CustomerNumber = "54321";
            coorporate1.CompanyName    = "Kodlama.io";
            coorporate1.TaxNumber      = "7865";

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

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(ındıvidual1);
            customerManager.Add(coorporate1);



            // Bu bir gerçek müşteri olduğu iin bunda şirket adı olmaz
            // eğer bu şirket yani tüzel müşteri olsaydı by sefer de tc  numarası vs olmazdı
            // bu yüzden bu kullanım yanlıştır.
            // SOLID
        }
Esempio n. 20
0
        static void Main(string[] args)
        {
            Individual customer1 = new Individual();

            customer1.ID              = 1;
            customer1.CustomerId      = "12345";
            customer1.CustomerName    = "Tuğçe";
            customer1.CustomerSurname = "Yazıcı";
            customer1.IdentityNumber  = "12345678910";

            Coorporate customer2 = new Coorporate();

            customer2.ID          = 2;
            customer2.CustomerId  = "54321";
            customer2.CompanyName = "Kodlama.io";
            customer2.TaxId       = "1234567890";

            Customer        customer3       = new Individual();
            Customer        customer4       = new Coorporate();
            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
            customerManager.Add(customer2);
        }