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

            //ILoggerService databaseLoggerService = new DataBaseLoggerService();
            //ILoggerService fileLogerService = new FileLoggerService();

            //List<ILoggerService> loggers = new List<ILoggerService>() {databaseLoggerService,fileLogerService};


            //BasvuruManager basvuruManager = new BasvuruManager();
            //basvuruManager.BasvuruYap(konutKrediManager,loggers);


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

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


            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(new EsnafKredisiManager(), loggers);

            List <IKrediManager> krediler = new List <IKrediManager>()
            {
                ihtiyacKrediManager, konutKrediManager, tasitKrediManager
            };
            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }
示例#2
0
        static void Main(string[] args)
        {
            //WishManager wishManager = new WishManager();
            //wishManager.Calculate();
            ////interface onu implemente eden classın referansını tutabilir.
            ////Aynı sonucu verir
            //ICrediManager wishManager1 = new WishManager();
            //wishManager1.Calculate();

            //CarManager carManager = new CarManager();
            //carManager.Calculate();

            //MortgageManager mortgageManager = new MortgageManager();
            //mortgageManager.Calculate();



            ICrediManager wishManager2     = new WishManager();
            ICrediManager carManager2      = new CarManager();
            ICrediManager mortgageManager2 = new MortgageManager();


            ILoggerService databaseLoggerService = new DataBaseLoggerService();
            ILoggerService filebaseLoggerService = new FileLoggerService();


            BasvuruManager basvuruManager  = new BasvuruManager();
            BasvuruManager basvuruManager1 = new BasvuruManager();

            basvuruManager.BasvuruYap(carManager2, new DataBaseLoggerService());
            basvuruManager1.BasvuruYapp(carManager2,                                                //polimorphism
                                        new List <ILoggerService> {
                new DataBaseLoggerService(), new FileLoggerService()
            });                                                                                     //new lemeleri 30 31 inci satırdakiler gibi de yapabiliriz.



            //interface ile list c*k iyi kullanılıyor.
            List <ICrediManager> crediManagers = new List <ICrediManager>
            {
                wishManager2, carManager2, mortgageManager2
            };

            basvuruManager.CreditPreInfo(crediManagers);
        }
示例#3
0
        static void Main(string[] args)
        {
            IKrediManager ihtiyacKrediManager = new İhtiyacKrediManager();
            IKrediManager tasitKrediManager   = new TasitKrediManager();
            IKrediManager konutKrediManager   = new KonutKrediManager();

            ILoggerService dataBaseLoggerService = new DataBaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(ihtiyacKrediManager, dataBaseLoggerService);

            List <IKrediManager> krediler = new List <IKrediManager>()
            {
                ihtiyacKrediManager, tasitKrediManager
            };
            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }
示例#4
0
        static void Main(string[] args)
        {
            IKrediManeger ihtiyacKrediManeger = new İhtiyacKrediManeger();
            IKrediManeger taşıtKrediManeger   = new TaşıtKrediManeger();
            IKrediManeger konutKrediManeger   = new KonutKrediManeger();

            ILoggerService dataBaseLoggerService = new DataBaseLoggerService();
            ILoggerService FileLogerService      = new FileLoggerService();

            //BasvuruManeger basvuruManeger = new BasvuruManeger();
            //basvuruManeger.Basvuruyap(konutKrediManeger,  dataBaseLoggerService);

            BasvuruManeger basvuruManeger = new BasvuruManeger();

            basvuruManeger.Basvuruyap(konutKrediManeger, FileLogerService);


            List <IKrediManeger> krediler = new List <IKrediManeger>()
            {
                ihtiyacKrediManeger, taşıtKrediManeger, konutKrediManeger
            };

            basvuruManeger.KrediOnBilgi(krediler);
        }
示例#5
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();

            List <ILoggerService> loggers = new List <ILoggerService> {
                dataBaseLoggerService, fileLoggerService, smsLoggerService
            };
            List <ILoggerService> loggers2 = new List <ILoggerService> {
                dataBaseLoggerService, fileLoggerService
            };
            List <ILoggerService> loggers3 = new List <ILoggerService> {
                smsLoggerService
            };

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(konutKrediManager, loggers);
            Console.WriteLine("-------------------------------------");
            basvuruManager.BasvuruYap(esnafKrediManager, loggers2);
            Console.WriteLine("-------------------------------------");
            basvuruManager.BasvuruYap(tasitKrediManager, loggers3);
            Console.WriteLine("-------------------------------------");

            List <IKrediManager> krediler = new List <IKrediManager>()
            {
                ihtiyacKrediManager, tasitKrediManager
            };
            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }