private static void Main(string[] args) { ICreditService financeCreditManager = new FinanceLoanManager(); ICreditService vehicleLoanManager = new VehicleLoanManager(); ICreditService mortgageLoanManager = new MortgageLoanManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); List <ILoggerService> loggers = new List <ILoggerService> { new SmsLoggerService(), new FileLoggerService() }; //new SmsLoggerService(), new FileLoggerService() RecourseManager recourseManager = new RecourseManager(); recourseManager.RecourseToLoan(new MortgageLoanManager(), loggers); List <ICreditService> creditServices = new List <ICreditService>() { financeCreditManager, vehicleLoanManager }; recourseManager.LoanPreliminaryInformation(creditServices); Console.ReadLine(); }
static void Main(string[] args) { ILoanManager financeLoanManager = new FinanceLoanManager(); ILoanManager transportLoanManager = new TransportLoanManager(); ILoanManager mortgageLoanManager = new MortgageLoanManager(); ILoggerService loggerService = new FileLoggerService(); ApplicationManager applicationManager = new ApplicationManager(); //applicationManager.BasvuruYap(mortgageLoanManager , new DatabaseLoggerService()); //applicationManager.BasvuruYap(transportLoanManager, loggerService); //applicationManager.BasvuruYap(new ArtisanLoanManager(), new SmsLoggerService()); List <ILoggerService> loggers = new List <ILoggerService> { new FileLoggerService(), new SmsLoggerService() }; applicationManager.BasvuruYap(new ArtisanLoanManager(), loggers); /*applicationManager.BasvuruYap(new ArtisanLoanManager(), new List<ILoggerService>() * { * new DatabaseLoggerService(), * new SmsLoggerService() * });*/ List <ILoanManager> loans = new List <ILoanManager>() { financeLoanManager, transportLoanManager }; //applicationManager.DoLoanPreviewInformation(loans); }
static void Main(string[] args) { ICreditManager financeLoanManager = new FinanceLoanManager(); ICreditManager transportLoanManager = new TransportLoanManager(); ICreditManager mortgageLoanManager = new MortgageLoanManager(); ICreditManager artisanLoanManager = new ArtisanLoanManager(); ILoggerService databaseLoggerService = new DataBaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); ApplicationManager applicationManager = new ApplicationManager(); applicationManager.Apply(artisanLoanManager, new List <ILoggerService> { new DataBaseLoggerService(), new SmsLoggerService() }); // new DataBaseLoggerService alternatif olarak böyle de ifade edilebilir List <ICreditManager> credits = new List <ICreditManager> { financeLoanManager, transportLoanManager }; //applicationManager.CreditPreInformation(credits); }