Beispiel #1
0
        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);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            ILoanManager consumerLoanManager  = new ConsumerLoanManager();
            ILoanManager autoLoanManager      = new AutoLoanManager();
            ILoanManager mortgageLoanManager  = new MortgageLoanManager();
            ILoanManager tradesmanLoanManager = new TradesmanLoanManager();

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

            List <ILoggerService> loggers = new List <ILoggerService> {
                new SmsLoggerService(), new DatabaseLoggerService(), new FileLoggerService()
            };

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(tradesmanLoanManager, loggers);

            List <ILoanManager> loans = new List <ILoanManager>()
            {
                consumerLoanManager, autoLoanManager
            };

            //applicationManager.MakeCreditPreNotification(loans);
        }
Beispiel #3
0
        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);
        }