示例#1
0
        static void Main(string[] args)
        {
            BaseCustomerManager customerManager1 = new NeroCustomerManager();

            customerManager1.Save(new Customer());
            BaseCustomerManager customerManager = new StarbucksCustomerManager(new MernisServiceAdapter());

            customerManager.Save(new Customer {
                DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Engin", LastName = "Demiroğ", NationalityId = "28861499108"
            });
            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            BaseCustomerManager customerManager = new StarbucksCustomerManager(new MernisServiceAdapter());

            customerManager.Save(new Customer
            {
                DOB        = new DateTime(1990, 1, 1),
                FirstName  = "Salih",
                LastName   = "Sağsalim",
                IdentityNo = 12345678910
            });
            Console.ReadLine();
        }
示例#3
0
        static void Main(string[] args)
        {
            CustomerManagerBase manager = new StarbucksCustomerManager(new CustomerCheckService(),
                                                                       new JsonRepository <Customer>("StarbucksCustomers.json"));

            manager.Register(new Customer
            {
                Id        = 2,
                Name      = "Rasim",
                Surname   = "Aliyev",
                BirthDate = new DateTime(2000, 12, 14),
                CardNo    = "AZE12345678"
            });
        }