Example #1
0
        static void Main(string[] args)
        {
            ICreaditManager personelNeedCredit = new PersonelNeedCreditManager();

            ICreaditManager vehicleCredit = new VehicleCreditManager();

            ICreaditManager mortgeCredit = new MortgeCreditManager();
            ICreaditManager Artisan      = new ArtisanManager();

            ILoggerService loger  = new DatabaseLoggerService();
            ILoggerService loger2 = new FileLoggerService();
            ILoggerService loger3 = new SmsLogger();

            List <ILoggerService> services = new List <ILoggerService>()
            {
                loger, loger2, loger3
            };


            ApplicationManager applicationManager = new ApplicationManager();

            //applicationManager.DoApplication(vehicleCredit,new DatabaseLoggerService()); // Başvuru yapılan müşteri .

            applicationManager.DoApplication(Artisan, loger3, services);
            List <ICreaditManager> creadits = new List <ICreaditManager>()
            {
                personelNeedCredit, vehicleCredit
            };                                                                                                // listeden iki kredi türü gönderilid.

            //applicationManager.CreditPreIntermadiateDo(creadits);



            Console.Read();
        }
Example #2
0
        static void Main(string[] args)
        {
            RequirementManager    requirementManager    = new RequirementManager();
            TransportCrediManager transportCrediManager = new TransportCrediManager();
            HouseCrediManager     houseCrediManager     = new HouseCrediManager();
            ArtisanManager        artisanManager        = new ArtisanManager();

            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();
            ILoggerService smsLoogerService      = new SmsLoggerService();

            List <ILoggerService> loggers = new List <ILoggerService>()
            {
                smsLoogerService, databaseLoggerService, fileLoggerService
            };
            List <ICrediManager> credits = new List <ICrediManager>()
            {
                requirementManager, transportCrediManager, houseCrediManager, artisanManager
            };

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(artisanManager, loggers);



            //applicationManager.MakeCreditInformation(credits);
        }