static void Main(string[] args) { ILoanManager personalLoanManager = new PersonalLoanManager(); ILoanManager autoLoanManager = new AutoLoanManager(); ILoanManager mortgageLoanManager = new MortgageLoanManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); List <ILoggerService> loggers = new List <ILoggerService> { new SmsLoggerService(), new FileLoggerService() }; ApplyManager applyManager = new ApplyManager(); // applyManager.ApplyNow(personalLoanManager,fileLoggerService); //new DatabaseLoggerService() şeklinde de yazılabilir applyManager.ApplyNow(new TradesmenLoanManager(), loggers); // applyManager.ApplyNow(new TradesmenLoanManager(), new List<ILoggerService>(){new DatabaseLoggerService(),new SmsLoggerService()}); List <ILoanManager> loans = new List <ILoanManager>() { personalLoanManager, autoLoanManager }; //applyManager.LoanPrequalificaiton(loans); }
static void Main(string[] args) { PersonalLoanManager personalLoanManager = new PersonalLoanManager(); AutoLoanManager autoLoanManager = new AutoLoanManager(); MortgageManager mortgageManager = new MortgageManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); LoanApplyManager loanApplyManager = new LoanApplyManager(); loanApplyManager.Apply(mortgageManager, fileLoggerService); List <ILoanManager> loans = new List <ILoanManager>() { mortgageManager, autoLoanManager }; //loanApplyManager.DoLoanPreliminaryInformation(loans); }
static void Main(string[] args) { ILoanManager personalLoanManager = new PersonalLoanManager(); ILoanManager vehicleLoanManager = new VehicleLoanManager(); ILoanManager mortgageManager = new MortgageManager(); LoanApplicationManager loanApplicationManager = new LoanApplicationManager(); ILoggerService databaseLoggerService = new DatabaseLoggerService(); ILoggerService fileLoggerService = new FileLoggerService(); loanApplicationManager.Apply(vehicleLoanManager, databaseLoggerService); List <ILoanManager> loans = new List <ILoanManager>() { mortgageManager, vehicleLoanManager }; //loanApplicationManager.LoanPreCalculation(loans); }