예제 #1
0
        static void Main(string[] args)
        {
            ILoanManager consumerLoanManager = new ConsumerLoanManager();
            ILoanManager vehicleLoanManager  = new VehicleLoanManager();
            ILoanManager mortgageLoanManager = new MortgageLoanManager();
            ILoanManager artisanLoanManager  = new ArtisanLoanManager();

            LoanApplicationManager loanApplicationManager = new LoanApplicationManager();
            ILoggerService         databaseLoggerService  = new DatabaseLoggerService();
            ILoggerService         fileLoggerService      = new FileLoggerService();
            ILoggerService         smsLoggerService       = new SmsLoggerService();

            //loanApplicationManager.Apply(vehicleLoanManager);
            //loanApplicationManager.Apply(mortgageLoanManager);
            loanApplicationManager.Apply(consumerLoanManager, new List <ILoggerService> {
                databaseLoggerService, smsLoggerService
            });
            loanApplicationManager.Apply(artisanLoanManager, new List <ILoggerService> {
                new DatabaseLoggerService(), new FileLoggerService()
            });
            loanApplicationManager.Apply(vehicleLoanManager, smsLoggerService);


            List <ILoanManager> loans = new List <ILoanManager>()
            {
                consumerLoanManager, vehicleLoanManager, mortgageLoanManager
            };
            //loanApplicationManager.GiveCreditPreInformation(loans);
        }
예제 #2
0
        private static void Main(string[] args)
        {
            LoanApplicationManager loanApplicationManager = new LoanApplicationManager();

            loanApplicationManager.Apply(new ArtisanLoanManager(),
                                         new List <ILoggerService> {
                new DatabaseLoggerService(), new SmsLoggerService()
            });

            List <ILoanManager> loans = new List <ILoanManager> {
                new MortgageLoanManager(), new VehicleLoanManager()
            };
            //loanApplicationManager.PreInformation(loans);
        }
예제 #3
0
        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);
        }