static void Main(string[] args) { /* Kahve Dükkanları için müşteri yönetimi yapan bir sistem yazılması isteniyor, * Starbucks ve Nero Firması için çalışıyoruz. * İki firmada müşterilierini veri tabanınana kaydetmek istiyor. * Starbucks müşterileri kaydederken, mutlaka Mernis doğrulaması istiyor. * Nero müşterileri kaydederken böyle bir istek yoktur. * Starbucks müşteriler için kahve alımında yıldız kazandırmak istiyor. */ // https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?op=TCKimlikNoDogrula //BaseCustomerManager baseCustomerManager = new BaseCustomerManager(); // Abstract Sınıflar newlenemez! BaseCustomerManager neroCustomerManager = new NeroCustomerManager(); neroCustomerManager.SaveToDatabase(new Customer() { CustomerId = 1, FirstName = "İrem", LastName = "Çalışkan", DateOfBirth = new DateTime(1997, 1, 5), NationalityId = 12345678912 }); BaseCustomerManager starbucksCustomerManager = new StarbucksCutomerManager(new MernisServiceAdapter()); starbucksCustomerManager.SaveToDatabase(new Customer() { CustomerId = 1, FirstName = "İrem", LastName = "Çalışkan", DateOfBirth = new DateTime(1997, 1, 5), NationalityId = 12345678912 // Doğru verince ekledi }); Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(new MernisServiceAdapter()); customerManager.Save(new Customer {DateOfBirth = new DateTime(1997,1,1), FirstName = "Ahmet Efecan", LastName = "Bayat", NationalityId = "12345678910" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Aslı", LastName = "Efe", NationalityId = "288614499852" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Entities.Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Yunus", LastName = "Kayaoğlu", NationalityId = "2886149910" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1984, 12, 7), FirstName = "Murat", LastName = "UTLU", NationalityId = "61252319098" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(2000, 8, 15), FirstName = "Bengiu", LastName = "Taşkın", NationalityId = "2345677" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1984, 3, 2), FirstName = "Enes", LastName = "Bora", NationalityId = "12607745192" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1999, 2, 27), FirstName = "Gökalp", LastName = "Avcu", NationalityId = "20838784512" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new System.DateTime(2004, 4, 15), FirstName = "Enes", LastName = "Fidan", NationalityId = "2899053" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.save(new Customer { DateOfBrith = new DateTime(1985, 1, 6), FirstName = "Engin", LastName = "Altay", NationalityId = "288614" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Entities.Customer { DateOfBirth = new System.DateTime(2004, 4, 15), FirstName = "Engin", LastName = "Demiroğ", NationalityId = "28861478" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1997, 10, 11), FirstName = "Gülşan", LastName = "Celep", Id = 1, NationalityId = "1234" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Engin", LastName = "Demiroğ", NationalityId = "11111111111"); Console.ReadLine(); } }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1997, 09, 04), FirstName = "Burak", LastName = "Baskın", NatioanalityId = "12345678910" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Oğuzhan", LastName = "Tekbaş", NationalityId = "12345678912" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1998, 9, 24), FirstName = "Serhat", LastName = "Ardic", NationalityId = "22222222222" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Engin", LastName = "Demiroğ", NationalityId = "28861499108" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateofBirth = new DateTime(1997, 7, 28), FirstName = "Simge", Lastname = "Bulut", TcNo = "123438594" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(2002, 11, 26), FirstName = "Mislina", LastName = "Aydın", NationlityId = "1234567" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Kutay", LastName = "Kutay", NationalityId = "123", Id = 123 }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Semih", LastName = "Arslan", NationalityId = "11111111111" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1997, 6, 14), FirstName = "Ayca", LastName = "Yakıcı", NationalityId = "123456789" }); Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(new MernisServiceAdapter()); customerManager.Save(new Customer { DateOfBirth = 1999, FirstName = "Sümeyra", LastName = "Sağır", NationalityId = 20604260072 }); //Yanlış bilgi gönderdiğim için Exceptiona gidecek !! Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(new MernisServiceAdapter()); customerManager.Save(new Customer { DateOfBirth = new DateTime(1999, 1, 5), FirstName = "", LastName = "", NationalityId = "" }); Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(new MernisServiceAdapter()); customerManager.Save(new Customer { dateYear = new DateTime(1998, 2, 1), firstName = "Muhammet", lastName = "balıkçı", TcNo = "12722371948" }); //Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Entities.Customer { DateOfBirth = new DateTime(1995, 07, 31), FirstName = "Yagmur", LastName = "Altug", NationalityId = "136524856332" }); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(new MernisServiceAdapter()); customerManager.Save(new Customer { FirstName = "Salih", DateOfBirth = 1995, LastName = "Yılmaz", NationalityId = 41107925278 }); Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(mernisServiceReference: new MernisServiceAdapter()); customerManager.Save(new Customer { DateOFbirth = new DateTime(2002, 9, 4), FirstName = "Yunus", LastName = "Kayaoğlu", NationalityId = "28861499108" }); Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(new MernisServiceAdapter()); customerManager.Save(new Entities.Customer { DateOfBirth = new System.DateTime(1995, 2, 2), FirstName = "Gizem", LastName = "Türkoğlu", NationalityId = "1234512345" }); Console.ReadLine(); }
static void Main(string[] args) { BaseCustomerManager customerManager = new NeroCustomerManager(); customerManager.Save(new Customer { DateOfBirth = new DateTime(1985, 1, 6), FirstName = "Muratcan", LastName = "Kara", Id = 1, NationalId = "6541865" }); Console.ReadLine(); }