static void Main(string[] args) { ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditManager tasitCreditManager = new TasitCreditManager(); ICreditManager konutCreditManager = new KonutCreditManager(); IloggerService dataBaseLoggerService = new DataBaseLoggerService(); IloggerService fileLoggerService = new FileLoggerService(); BasvuruManager basvuruManager = new BasvuruManager(); basvuruManager.BasvuruYap(new EsnafKrediManager(), new List <IloggerService>() { dataBaseLoggerService, fileLoggerService , new SmsLoggerService() }); List <ICreditManager> credits = new List <ICreditManager>() { ihtiyacCreditManager, tasitCreditManager }; //basvuruManager.KrediOnBilgilendirmesiYap(credits); }
static void Main(string[] args) { ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); //interfaceler implemente edildiiği sınıfların referans nolarını tutabilirler o yüzden ICreditManager yazsam da çalışır aynı şey TasitCreditManager tasitCreditManager = new TasitCreditManager(); //burada tasit yazdım anlasılsın diye ICredit de yazsam aynı şey olacak ICreditManager konutCreditManager = new KonutCreditManager(); ICreditManager esnafCreditManager = new EsnafCreditManager(); ILoggerService dataBaseLoggerService = new DataBaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); ILoggerService smsLoggerService = new SmsLoggerService(); ApplyManager applyManager = new ApplyManager(); applyManager.Apply(konutCreditManager, new DataBaseLoggerService(), new List <ILoggerService> { new DataBaseLoggerService(), new SmsLoggerService() }); //buradaki logu ya da kredi türünü değiştirdiğim takdirde hangi seçeneği istiyorsam sağlarım.İster taşıt ister file logu ya da istediğim farklı kombinasyonlar applyManager.Apply(esnafCreditManager, new SmsLoggerService(), new List <ILoggerService> { new DataBaseLoggerService(), new FileLoggerService() }); List <ICreditManager> credits = new List <ICreditManager>() { ihtiyacCreditManager, tasitCreditManager }; //Liste yolu ile hesaplama //applyManager.CreditOnBilgilendirmesiYap(credits); }
static void Main(string[] args) { //IhtiyacCreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditManager tasitCreditManager = new TasitCreditManager(); ICreditManager konutCreditManager = new KonutCreditManager(); ILoggerService dbLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); BasvuruManager basvuruManager = new BasvuruManager(); basvuruManager.BasvuruYap(konutCreditManager, new List <ILoggerService> { dbLoggerService, fileLoggerService }); basvuruManager.BasvuruYap(konutCreditManager, new List <ILoggerService> { fileLoggerService }); List <ICreditManager> credits = new List <ICreditManager>(); credits.Add(ihtiyacCreditManager); credits.Add(tasitCreditManager); credits.Add(konutCreditManager); //basvuruManager.CreditInformation(credits); }
static void Main(string[] args) { ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditManager tasitCreditManager = new TasitCreditManager(); ICreditManager konutCreditManager = new KonutCreditManager(); ICreditManager esnafCreditManager = new EsnafCreditManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); ILoggerService smsLoggerService = new SmsLoggerService(); List <ILoggerService> loggers = new List <ILoggerService>() { new SmsLoggerService(), new FileLoggerService() }; BasvuruManager basvuruManager = new BasvuruManager(); basvuruManager.BasvuruYap(esnafCreditManager, loggers); List <ICreditManager> credits = new List <ICreditManager>() { ihtiyacCreditManager, tasitCreditManager }; //basvuruManager.CreditOnBilgilendirmeYap(credits); }
static void Main(string[] args) { ICreditManager ihtiyacKrediManager = new İhtiyacCreditManager(); ICreditManager tasitcreditManager = new TasitCreditManager(); ICreditManager konutCreditmanager = new KonutCreditManager(); BasvuruManager basvuruManager = new BasvuruManager(); basvuruManager.BasvuruYap(ihtiyacKrediManager); }
static void Main(string[] args) { ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditManager tasitCreditManager = new TasitCreditManager(); ICreditManager konutCreditManager = new KonutCreditManager(); ILoggerService fileLoggerService = new FileLoggerService(); ApplyManager applyManager = new ApplyManager(); applyManager.Applying(ihtiyacCreditManager, new DatabaseLoggerService()); List <ICreditManager> credits = new List <ICreditManager>() { konutCreditManager, tasitCreditManager }; //applyManager.CreditPreInfo(credits); }
static void Main(string[] args) { //***********// ICreditService ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditService tasitCreditManager = new TasitCreditManager(); ICreditService konutCreditManager = new KonutCreditManager(); ApplicationManager applicationManager = new ApplicationManager(); applicationManager.GetApplication(new EsnafCreditManager(), new List <ILoggerService> { new DatabaseLoggerService(), new SmsLogger() }); //*****new List <ICreditService> credits = new List <ICreditService>() { konutCreditManager, tasitCreditManager, ihtiyacCreditManager }; applicationManager.GetCreditInformation(credits); }
static void Main(string[] args) { ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditManager tasitCreditManager = new TasitCreditManager(); ICreditManager konutCreditManager = new KonutCreditManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); AppManager appManager = new AppManager(); appManager.Apply(ihtiyacCreditManager, databaseLoggerService); //new DatabaseLoggerService()); List <ICreditManager> credits = new List <ICreditManager>() { ihtiyacCreditManager, konutCreditManager }; //appManager.PreCreditInform(credits); }
static void Main(string[] args) { ICreditBaseManager ihtiyacCreditManager = new İhtiyacCreditManager(); ICreditBaseManager tasitCreditManager = new TasitCreditManager(); ICreditBaseManager konutCreditManager = new KonutCreditManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); ApplicationManager applicationManager = new ApplicationManager(); applicationManager.MakeAnApp(ihtiyacCreditManager, new List <ILoggerService> { new DatabaseLoggerService(), new FileLoggerService() }); Console.WriteLine("//"); List <ICreditBaseManager> credits = new List <ICreditBaseManager>() { ihtiyacCreditManager, tasitCreditManager }; applicationManager.GivePreInfo(credits); }
static void Main(string[] args) { ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); ICreditManager tasitCreditManager = new TasitCreditManager(); ICreditManager konutCreditManager = new KonutCreditManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); BasvuruManager basvuruManager = new BasvuruManager(); basvuruManager.BasvuruYap(konutCreditManager, databaseLoggerService); List <ICreditManager> credits = new List <ICreditManager>() { ihtiyacCreditManager }; //basvuruManager.KrediOnBilgilendirmesiYap(credits); }