コード例 #1
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();
        }
コード例 #2
0
        public void Add(Customer customer)
        {
            _individualCustomer = (IndividualCustomer)customer;


            Console.WriteLine(_individualCustomer.Name);

            /*if(customer.)
             * {
             *
             * }*/
            //customer.
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: LutfuHeysem/Cs_camp
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer
            {
                Id         = 1,
                CustomerId = "12345",
                Name       = "Engin",
                Surname    = "Demirog",
                TcNo       = "12345678910"
            };

            CoorporateCustomer customer2 = new CoorporateCustomer
            {
                Id          = 2,
                CustomerId  = "54321",
                CompanyName = "kodlama.io",
                TaxeNo      = "123456789"
            };

            Customer customer3 = new IndividualCustomer();
            Customer customer4 = new CoorporateCustomer();
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: dogukanmuslukcu/KampIntro
        static void Main(string[] args)
        {
            IndividualCustomer customer1 = new IndividualCustomer();

            customer1.Id             = 1;
            customer1.CustomerNumber = "12345";
            customer1.Name           = "Doğukan";
            customer1.Surname        = "Muslukçu";
            customer1.TcNumber       = "123456789";

            CoorporateCustomer customer2 = new CoorporateCustomer();

            customer2.Id             = 2;
            customer2.CustomerNumber = "54321";
            customer2.CompanyName    = "Company2";
            customer2.TaxNo          = "1234567890";

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

            CustomerManager customerManager = new CustomerManager();

            customerManager.Add(customer1);
        }
コード例 #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);
        }
コード例 #6
0
 public CustomerManager()
 {
     _individualCustomer = new IndividualCustomer();
 }
コード例 #7
0
ファイル: Program.cs プロジェクト: eomeracar/KampIntro
        static void Main(string[] args)
        {
            //{
            //    IndividualCustomer customer1 = new IndividualCustomer();
            //    customer1.Id = 1;
            //    customer1.Name = "Ömer";
            //    customer1.SurName = "Acar";
            //    customer1.TcNo = "1111111111";
            //    customer1.CustomerNo = "123456789";

            //    //Gerçek Müşteri - Tüzel Müşteri
            //    //Tüzel Müşteri
            //    CorporateCustomer customer2 = new CorporateCustomer();
            //    customer2.Id = 2;
            //    customer2.TaxNo = "1234567890";
            //    customer2.CustomerNo = "111111111";
            //    customer2.CompanyName = "Softac A.Ş.";



            //    Customer customer3 = new CorporateCustomer();



            Customer customer4 = new IndividualCustomer()
            {
                Id = 5, Name = "Ömer", SurName = "Acar", CustomerNo = "5", TcNo = "33322"
            };



            //Bireysel Müşteri
            //  IndividualCustomer customer5 = new IndividualCustomer();
            Console.WriteLine(customer4.CustomerNo);



            //customer5.CustomerNo = "1";
            //customer5.Id = 4;
            //customer5.Name = "Ahmet";
            //customer5.SurName = "Nejdet";
            //customer5.TcNo = "1111111113";



            CustomerManager customerManager = new CustomerManager();

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

            //Console.WriteLine("Hello World!");



            Person person = new Employee(new Employee {
                Id = 8
            });
            //Console.WriteLine(person.Id);
        }