//interfacelerde o implemente edilen sınıfın referansını tutabiliyor static void Main(string[] args) { ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); //ihtiyacCreditManager.Calc(); ICreditManager vehicleCreditManager = new VehicleCreditManager(); //vehicleCreditManager.Calc(); ICreditManager konutCreditManager = new KonutCreditManager(); //konutCreditManager.Calc(); ILoggerServices dataBaseLoggerServices = new DatabaseLoggerServices(); ILoggerServices fileLoggerServices = new FileLoggerServices(); List <ILoggerServices> loggers = new List <ILoggerServices> { new SmsLoggerServices(), new DatabaseLoggerServices() }; BasvuruManager basvuru = new BasvuruManager(); basvuru.BasvuruYap(new EsnafCreditManager(), loggers); //new DataBaseLoggerservices şeklinde de kullanılabilir List <ICreditManager> credits = new List <ICreditManager>() { ihtiyacCreditManager, konutCreditManager, vehicleCreditManager }; //basvuru.CreditFirstInfo(credits); Console.ReadLine(); }
static void Main(string[] args) { IKrediManager ihtiyacKrediManager = new IhtiyacKrediManager(); IKrediManager tasıtKrediManager = new TasitKrediManager(); IKrediManager konutKrediManager = new KonutKrediManager(); ILoggerService databaseLoggerService = new DatabaseLoggerServices(); ILoggerService fileLoggerService = new FileLoggerServices(); List <ILoggerService> loggers = new List <ILoggerService> { new SmsLoggerService(), new FileLoggerServices() }; BasvuruManager basvuruManager = new BasvuruManager(); basvuruManager.BasvuruYap(new EsnafKredisiManager(), loggers); List <IKrediManager> krediler = new List <IKrediManager>() { ihtiyacKrediManager, tasıtKrediManager }; //basvuruManager.KrediOnBilgilendirmesiYap(krediler); }
static void Main(string[] args) { //bunlar ekrandaki a.ılır kutular IKrediManager ihtiyacKrediManager = new IhtiyacKrediManager(); IKrediManager tasitKrediManager = new TasitKrediManager(); IKrediManager konutKrediManager = new KonutKrediManager(); ILoggerService databaseLoggerService = new DatabaseLoggerServices(); ILoggerService fileLoggerService = new FileLoggerServices(); BasvuruManager basvuruManager = new BasvuruManager(); basvuruManager.BasvuruYap(tasitKrediManager, databaseLoggerService); List <IKrediManager> krediler = new List <IKrediManager>() { ihtiyacKrediManager, tasitKrediManager }; // basvuruManager.KrediOnBilgilendirmesiYap(krediler); }
static void Main(string[] args) { ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager(); //personalFinanceCreditManager.Calculate(); ICreditManager transportCreditManager = new TransportCreditManager(); //transportCreditManager.Calculate(); ICreditManager mortgageCreditManager = new MortgageCreditManager(); //mortgageCreditManager.Calculate(); ILoggerServices databaseLoggerServices = new DatabaseLoggerServices(); ILoggerServices fileLoggerServices = new FileLoggerServices(); AplicationManager aplicationManager = new AplicationManager(); aplicationManager.DoAplication(new ArtisanCreditManager(), new SmsLoggerServices()); List <ICreditManager> credits = new List <ICreditManager>() { personalFinanceCreditManager, transportCreditManager }; //aplicationManager.MakeCreditPreliminaryInformation(credits); }