Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            IKrediManager ihtiyacKrediManager = new IhtiyacKrediManager();
            IKrediManager konutKrediManager   = new KonutKrediManager();
            IKrediManager tasitKrediManager   = new TasitKrediManager();


            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();
            ILoggerService mailLoggerService     = new MailLoggerService();

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(ihtiyacKrediManager, mailLoggerService);

            List <IKrediManager> krediManagers = new List <IKrediManager>()
            {
                ihtiyacKrediManager, tasitKrediManager, new AraçKrediManager()
            };
            List <ILoggerService> loggerServices = new List <ILoggerService>()
            {
                fileLoggerService, mailLoggerService
            };

            basvuruManager.KrediOnBilgilendirmeYap(krediManagers, loggerServices);
        }
Ejemplo n.º 2
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();
            ILoggerService mailLoggerService     = new MailLoggerService();

            List <ILoggerService> loggers = new List <ILoggerService>()
            {
                databaseLoggerService, smsLoggerService, mailLoggerService
            };

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(esnafKrediManager, loggers);


            List <IKrediManager> krediler = new List <IKrediManager>()
            {
                ihtiyacKrediManager, tasitKrediManager, konutKrediManager
            };

            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }