Пример #1
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);
        }
Пример #2
0
        static void Main(string[] args)
        {
            GercekMusteri musteri1 = new GercekMusteri();

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

            //Kodlama.io

            TuzelMusteri musteri2 = new TuzelMusteri();

            musteri2.Id        = 2;
            musteri2.MusteriNo = "54321";
            musteri2.SirketAdi = "Kodlama.io";
            musteri2.VergiNo   = "12345678910";


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

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

            CostumerManager costumeManager = new CostumerManager();

            costumeManager.Add(musteri1);
            costumeManager.Add(musteri2);
        }
Пример #3
0
        static void Main(string[] args)
        {
            GercekMusteri musteri1 = new GercekMusteri();

            musteri1.MusteriNo = "12345";
            musteri1.Adi       = "Engin";
            musteri1.Soyadi    = "Demir";
            musteri1.TcNo      = "123123123";
            musteri1.Id        = 1;

            TuzelMusteri musteri2 = new TuzelMusteri();

            musteri2.Id        = 2;
            musteri2.MusteriNo = "54321";
            musteri2.SirketAdi = "Kodlama.io";
            musteri2.VergiNo   = "1234567890";


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

            musteriManager.Add(musteri1);
            musteriManager.Add(musteri2);
        }
Пример #4
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);
        }
Пример #5
0
        static void Main(string[] args)
        {
            //abstraction
            GercekMusteri musteri1 = new GercekMusteri();

            musteri1.Id        = 1;
            musteri1.MusteriNo = "12345";
            musteri1.Adi       = "Engin";
            musteri1.Soyadi    = "Demniroğ";
            musteri1.TcNo      = "1234567890";



            //kodlama.io
            TuzelMusteri musteri2 = new TuzelMusteri();

            musteri2.Id        = 2;
            musteri2.MusteriNo = "54321";
            musteri2.SirketAdi = "kodlama.io";
            musteri2.VergiNo   = "1234567890";



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

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

            CostumerManager costumerManager = new CostumerManager();

            costumerManager.Add(musteri1);
            costumerManager.Add(musteri2);
        }
Пример #6
0
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer();

            customer1.CustomerNumber = "12345";
            customer1.Name           = "Engin";
            customer1.LastName       = "Demiroğ";
            customer1.PersonalId     = "12345678910";

            CoorporateCustomer customer2 = new CoorporateCustomer();

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

            //******************//
            Costumer costumer3 = new IndividualCustomer();
            Costumer costumer4 = new CoorporateCustomer();

            CostumerManager costumerManager = new CostumerManager();

            costumerManager.Add(costumer1);
            costumerManager.Add(costumer3);
        }
Пример #7
0
        static void Main(string[] args)
        {
            IndividualCostumer costumer1 = new IndividualCostumer();

            costumer1.FirstName  = "Furkan";
            costumer1.LastName   = "Kurban";
            costumer1.CostumerNo = "02468";
            costumer1.Id         = 1;

            CoorporateCostumer costumer2 = new CoorporateCostumer();

            costumer2.Id          = 2;
            costumer2.CompanyName = "Çağrı Ambalaj";
            costumer2.CostumerNo  = "13579";
            costumer2.TaxNo       = "1234567890";

            Costumer costumer3 = new CoorporateCostumer();  //Costumer basic olduğundan referans numarası atıyabiliyoruz
            Costumer costumer4 = new IndividualCostumer();


            CostumerManager costumerManager = new CostumerManager();

            costumerManager.Add(costumer1);
            costumerManager.Add(costumer3);
        }