示例#1
0
        static void Main(string[] args)
        {
            BaseCustomerManager customerManager = new StarbuksCustomerManager(new MernisServiceAdapter());

            customerManager.Save(new Customer {
                DateOfBirth = new DateTime(1995, 8, 20), FirstName = "DİLEK", LastName = "ŞEN", NationalityId = "1111111111"
            });
            //doğru bilgi verdigimde eklendi yazar, yanlış bilgi verildiğinde exception fırlatır
        }
示例#2
0
        static void Main(string[] args)
        {
            BaseCustomerManager customerManager = new StarbuksCustomerManager(new MernisServiceAdapter());

            customerManager.Save(new Customer
            {
                DateOfBirth   = new DateTime(1993, 3, 13),
                FirstName     = "Buşra",
                LastName      = "Çalışkan",
                NationalityId = "31891170336"
            });
            Console.ReadLine();
        }