예제 #1
0
        static void Main(string[] args)
        {
            IKrediManager ihtiyacKrediManager = new IhtiyacKrediManager();
            IKrediManager tasitKrediManager   = new TasitKrediManager();
            IKrediManager konutKrediManager   = new KonutKrediManager();

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

            BasvuruManager basvuruManager = new BasvuruManager();

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


            basvuruManager.Basvuru(krediler, loggerServices);
            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }
예제 #2
0
        static void Main(string[] args)
        {
            IhtiyacCreditManager ihtiyaccreditManager = new IhtiyacCreditManager();
            KonutCreditManager   konutCreditManager   = new KonutCreditManager();

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

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


            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.Basvuru(konutCreditManager, loggerServices);

            //List<ICreditManager> credits = new List<ICreditManager>() { ihtiyaccreditManager, konutCreditManager};
            //basvuruManager.OnBilgilendirme(credits);
        }