Пример #1
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();

            ICreditManager tasitCreditManager = new TasitCreditManager();

            ICreditManager konutCreditManager = new KonutCreditManager();

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


            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(new EsnafKrediManager(), new List <IloggerService>()
            {
                dataBaseLoggerService, fileLoggerService
                , new SmsLoggerService()
            });


            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, tasitCreditManager
            };

            //basvuruManager.KrediOnBilgilendirmesiYap(credits);
        }
Пример #2
0
        //INTERFACES,POLIMORFIZM
        static void Main(string[] args)
        {
            /*****Interfaceler de ebeveyn classlar gibi o interfaceyi implemente eden
             * classın referans nosunu tutabiliyor******/

            //IhtiyacCreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            //ihtiyacCreditManager.Calculate();
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();

            //TasıtCreditManager tasıtCreditManager = new TasıtCreditManager();
            //tasıtCreditManager.Calculate();
            ICreditManager tasıtCreditManager = new TasıtCreditManager();

            //KonutCreditManager konutCreditManager = new KonutCreditManager();
            //konutCreditManager.Calculate();
            ICreditManager konutCreditManager = new KonutCreditManager();

            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();
            // ya da
            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(ihtiyacCreditManager, databaseLoggerService);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager
            };
            //applicationManager.KrediOnBilgilendirmesiYap(credits);
        }
Пример #3
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager(); //interfaceler implemente edildiiği sınıfların referans nolarını tutabilirler o yüzden ICreditManager yazsam da çalışır aynı şey

            TasitCreditManager tasitCreditManager = new TasitCreditManager(); //burada tasit yazdım anlasılsın diye ICredit de yazsam aynı şey olacak

            ICreditManager konutCreditManager = new KonutCreditManager();

            ICreditManager esnafCreditManager = new EsnafCreditManager();

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

            ApplyManager applyManager = new ApplyManager();

            applyManager.Apply(konutCreditManager, new DataBaseLoggerService(), new List <ILoggerService> {
                new DataBaseLoggerService(), new SmsLoggerService()
            });                                                                                                                                                   //buradaki logu ya da kredi türünü değiştirdiğim takdirde hangi seçeneği istiyorsam sağlarım.İster taşıt ister file logu ya da istediğim farklı kombinasyonlar
            applyManager.Apply(esnafCreditManager, new SmsLoggerService(), new List <ILoggerService> {
                new DataBaseLoggerService(), new FileLoggerService()
            });



            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, tasitCreditManager
            };                                                                                                    //Liste yolu ile hesaplama
            //applyManager.CreditOnBilgilendirmesiYap(credits);
        }
Пример #4
0
        static void Main(string[] args)
        {
            //IhtiyacCreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();

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

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(konutCreditManager, new List <ILoggerService> {
                dbLoggerService, fileLoggerService
            });

            basvuruManager.BasvuruYap(konutCreditManager, new List <ILoggerService> {
                fileLoggerService
            });

            List <ICreditManager> credits = new List <ICreditManager>();

            credits.Add(ihtiyacCreditManager);
            credits.Add(tasitCreditManager);
            credits.Add(konutCreditManager);
            //basvuruManager.CreditInformation(credits);
        }
Пример #5
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();
            ICreditManager esnafCreditManager   = new EsnafCreditManager();

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

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

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(esnafCreditManager, loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, tasitCreditManager
            };
            //basvuruManager.CreditOnBilgilendirmeYap(credits);
        }
Пример #6
0
        //interfacelerde o implemente edilen sınıfın referansını tutabiliyor
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            //ihtiyacCreditManager.Calc();

            ICreditManager vehicleCreditManager = new VehicleCreditManager();
            //vehicleCreditManager.Calc();

            ICreditManager konutCreditManager = new KonutCreditManager();
            //konutCreditManager.Calc();

            ILoggerServices dataBaseLoggerServices = new DatabaseLoggerServices();
            ILoggerServices fileLoggerServices     = new FileLoggerServices();

            List <ILoggerServices> loggers = new List <ILoggerServices> {
                new SmsLoggerServices(), new DatabaseLoggerServices()
            };

            BasvuruManager basvuru = new BasvuruManager();

            basvuru.BasvuruYap(new EsnafCreditManager(), loggers);  //new DataBaseLoggerservices şeklinde de kullanılabilir

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, konutCreditManager, vehicleCreditManager
            };

            //basvuru.CreditFirstInfo(credits);

            Console.ReadLine();
        }
Пример #7
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            //ihtiyacCreditManager.Hesapla();

            CarCreditManager carCreditManager = new CarCreditManager();
            //carCreditManager.Hesapla();

            KonutCreditManager konutCreditManager = new KonutCreditManager();
            //konutCreditManager.Hesapla();

            BasvuruManager basvuruManager = new BasvuruManager();

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

            basvuruManager.BasvuruYap(konutCreditManager, fileLoggerService);

            //basvuruManager.BasvuruYap(carCreditManager);

            //basvuruManager.BasvuruYap(ihtiyacCreditManager);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager, carCreditManager, konutCreditManager
            };

            basvuruManager.KrediOnIzleme(credits);
        }
Пример #8
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacKrediManager = new İhtiyacCreditManager();
            ICreditManager tasitcreditManager  = new TasitCreditManager();
            ICreditManager konutCreditmanager  = new KonutCreditManager();

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(ihtiyacKrediManager);
        }
Пример #9
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();

            ILoggerService fileLoggerService = new FileLoggerService();

            ApplyManager applyManager = new ApplyManager();

            applyManager.Applying(ihtiyacCreditManager, new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                konutCreditManager, tasitCreditManager
            };
            //applyManager.CreditPreInfo(credits);
        }
Пример #10
0
        static void Main(string[] args)
        {   //***********//
            ICreditService ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditService tasitCreditManager   = new TasitCreditManager();
            ICreditService konutCreditManager   = new KonutCreditManager();

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.GetApplication(new EsnafCreditManager(), new List <ILoggerService> {
                new DatabaseLoggerService(), new SmsLogger()
            });                                                                                                                                    //*****new

            List <ICreditService> credits = new List <ICreditService>()
            {
                konutCreditManager, tasitCreditManager, ihtiyacCreditManager
            };

            applicationManager.GetCreditInformation(credits);
        }
Пример #11
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);
        }
Пример #12
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager tasitCreditManager   = new TasitCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();


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

            AppManager appManager = new AppManager();

            appManager.Apply(ihtiyacCreditManager, databaseLoggerService); //new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacCreditManager,
                konutCreditManager
            };
            //appManager.PreCreditInform(credits);
        }
Пример #13
0
        static void Main(string[] args)
        {
            ICreditManager ihtiyacCreditManager = new IhtiyacCreditManager();
            ICreditManager carCreditManager     = new CarCreditManager();
            ICreditManager konutCreditManager   = new KonutCreditManager();

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



            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(carCreditManager, fileLoggerService);

            List <ICreditManager> krediler = new List <ICreditManager>()
            {
                ihtiyacCreditManager, carCreditManager, konutCreditManager
            };

            //basvuruManager.KrediOnBilgilendirmesiYap(krediler);
        }
Пример #14
0
        static void Main(string[] args)
        {
            ICreditBaseManager ihtiyacCreditManager = new İhtiyacCreditManager();
            ICreditBaseManager tasitCreditManager   = new TasitCreditManager();
            ICreditBaseManager konutCreditManager   = new KonutCreditManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeAnApp(ihtiyacCreditManager, new List <ILoggerService> {
                new DatabaseLoggerService(), new FileLoggerService()
            });
            Console.WriteLine("//");

            List <ICreditBaseManager> credits = new List <ICreditBaseManager>()
            {
                ihtiyacCreditManager, tasitCreditManager
            };

            applicationManager.GivePreInfo(credits);
        }