示例#1
0
        static void Main(string[] args)
        {
            IKrediManager ihtiyacKrediManager = new IhtiyacKrediManager();
            IKrediManager tasitKrediManager   = new TasitKrediManager();
            IKrediManager konutKrediManager   = new KonutKrediManager();
            IKrediManager esnafKrediManager   = new EsnafKrediManager();

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


            BasvuruManager basvuruManager = new BasvuruManager();
            //basvuruManager.BasvuruYap(esnafKrediManager, smsLoggerService);

            List <IKrediManager> krediler = new List <IKrediManager>()
            {
                ihtiyacKrediManager, tasitKrediManager
            };
            List <ILoggerService> loggers = new List <ILoggerService>()
            {
                smsLoggerService, fileLoggerService, databaseLoggerService
            };

            basvuruManager.KrediOnBilgilendirmesiYap(krediler);
            basvuruManager.CokluLogYap(loggers);

            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }