Beispiel #1
0
        static void Main(string[] args)
        {
            ICreditManager demandCreditManager    = new DemandCreditManager();
            ICreditManager vehicleCreditManager   = new VehicleCreditManager();
            ICreditManager mortgageCreditManager  = new MortgageCreditManager();
            ICreditManager artificerCreditManager = new ArtificerCreditManager();

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

            AppealManager appealManager = new AppealManager();

            appealManager.DoAppeal(artificerCreditManager, new List <ILoggerService>()
            {
                databaseLoggerService, new SmsLoggerService()
            });

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

            //appealManager.DoInfoByCredit(credits);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            //    PersonalFinanceCredit personalFinanceCredit = new PersonalFinanceCredit();
            //    personalFinanceCredit.Calculate();

            //    VehicleCredit vehicleCredit = new VehicleCredit();
            //    vehicleCredit.Calculate();

            //    MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
            //    mortgageCreditManager.Calculate();
            /********************************************/
            ICreditManager personalFinanceCredit = new PersonalFinanceCredit();
            ICreditManager vehicleCredit         = new VehicleCredit();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();

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


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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.DoApplication(new EsnafCreditManager(), loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCredit, mortgageCreditManager, vehicleCredit
            };
            //applicationManager.DoCreditPreInformation(credits);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            //Bunlar şubedeki arkadaşın secebileceği kredi seçenekleri
            ICreditManager ihtiyacKrediManager    = new İhtiyacKrediManager(); //İnterfaceler, o interfaceyi implemente eden classin referans numarasını tutabilir.
            ICreditManager mortgageCreditManager  = new MortgageCreditManager();
            ICreditManager transportCreditManager = new TransportCreditManager();


            CreditApplicationManager creditApplicationManager = new CreditApplicationManager();
            DatabaseLoggerService    databaseLoggerService    = new DatabaseLoggerService(); //aslında alternatif olarak alt satırdaki kodda parametreye "new DatabaseLoggerService()" girilebilir.

            creditApplicationManager.BasvuruYap(ihtiyacKrediManager, databaseLoggerService); //çıktı ihtiyac kredisi hesaplandı!

            //ICreditManager'de bir veri tipidir.
            List <ICreditManager> credits = new List <ICreditManager>()
            {
                ihtiyacKrediManager, mortgageCreditManager, transportCreditManager
            };

            Console.WriteLine("Liste tipinde birden çok kredi türünü hesaplama!: ");
            creditApplicationManager.CreditPreNotification(credits);

            Console.WriteLine("---------------------");
            MortgageCreditManager mortgageCreditManager1 = new MortgageCreditManager();

            creditApplicationManager.BasvuruYap(mortgageCreditManager1, new FileLoggerService());
        }
Beispiel #4
0
        static void Main(string[] args)
        //Interfaceler de o interfaceyi implemente eden sınıfın referans numarasını tutabilir.
        //Interfaceleri birbirinin alternatifi olan ama kod içerikleri farklı olan durumlar için kullanırız.

        {
            ICrediManager personalCreditManager = new PersonalCreditManager();


            ICrediManager vehicleCreditManager = new VehicleCreditManager();


            ICrediManager mortgageCreditManager = new MortgageCreditManager();

            ApplicationManager applicationManager = new ApplicationManager();

            //ILoggerServices databaseLoggerServices = new DatabaseLoggerServices();
            applicationManager.ToApply(mortgageCreditManager, new DatabaseLoggerServices());//bu şekildede olur üstte oluşturup da atabilirz.

            //ILoggerServices fileLoggerServices = new FileLoggerServices();
            //Aynı anda 2 tane hesaplamak istiyor isek

            List <ICrediManager> credis = new List <ICrediManager>()
            {
                personalCreditManager, mortgageCreditManager
            };

            //applicationManager.CreditPreInformation(credis);
        }
Beispiel #5
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager transportCreditManager       = new TransportCreditManager();
            ICreditManager mortgageCreditManager        = new MortgageCreditManager();

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

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Apply(new ArtisanCreditManager(), loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCreditManager, transportCreditManager
            };
            //applicationManager.MakeCreditPreNotification(credits);
        }
Beispiel #6
0
        static void Main(string[] args)
        {
            //ICreditManager
            PersonalFinanceCredit personalFinanceCredit = new PersonalFinanceCredit();


            //ICreditManager
            CarCreditManager carCreditManager = new CarCreditManager();


            //ICreditManager
            MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
            //interface'lerde o interface'i implemente eden class'ın referans numarasını tutabilir

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

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

            BasvuruManager basvuruManager = new BasvuruManager();

            basvuruManager.BasvuruYap(personalFinanceCredit, databaseLoggerService);

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

            //basvuruManager.KrediOnBilgilendirme(krediler);
        }
Beispiel #7
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager vehicleCreditManager         = new VehicleCreditManager();
            ICreditManager mortgageCreditManager        = new MortgageCreditManager();
            ICreditManager artisanCreditManager         = new ArtisanCreditManager();
            ILoggerService smsLoggerService             = new SmsLoggerService();
            ILoggerService databaseLoggerService        = new DatabaseLoggerService();
            ILoggerService fileLoggerService            = new FileLoggerService();

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeAnApplication(vehicleCreditManager, fileLoggerService);
            Console.WriteLine("-----------------");
            applicationManager.MakeAnApplication(mortgageCreditManager, databaseLoggerService);
            Console.WriteLine("-----------------");
            applicationManager.MakeAnApplication(personalFinanceCreditManager, fileLoggerService);
            Console.WriteLine("-----------------");
            applicationManager.MakeAnApplication(artisanCreditManager, smsLoggerService);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCreditManager, vehicleCreditManager
            };
            //applicationManager.MakeCreditPreInformation(credits);
        }
Beispiel #8
0
        static void Main(string[] args)
        {
            ICreditManager personelFinanceCreditManager = new PersonelFinanceCreditManager();
            //personelFinanceCreditManager.Calculate();
            ICreditManager transportCreditManager = new TransportCreditManager();
            //transportCreditManager.Calculate();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();
            //mortgageCreditManager.Calculate();


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



            ApplicationManager applicationManager = new ApplicationManager();



            applicationManager.Apply(new ArtisanCreditManager(),
                                     new List <ILoggerService> {
                new DatabaseLoggerService(), new SmsLoggerService()
            });



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

            credits.Add(personelFinanceCreditManager);
            credits.Add(transportCreditManager);
            //applicationManager.MakeCreditPreInform(credits);
        }
Beispiel #9
0
        static void Main(string[] args)
        {
            ICreditManager personalCreditManager = new PersonalCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();

            //Interfaceler de o interface i implement eden classın referans numarasını tutabilir.

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

            List <ILoggerService> loggers = new List <ILoggerService> {
                new SmsLoggerService(), new FileLoggerService()
            };                                                                                                          //işlemde birden fazla log işlemi yapabilmemiz için

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.ToApply(vehicleCreditManager, loggers);//Başvuruya hangi kredi türü gönderilirse o türün classındaki hesaplama metodu çalışır.Aynısı loglama türü için de geçerlidir.

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalCreditManager, mortgageCreditManager
            };
            //applicationManager.CreditPreInformation(credits); //Birden fazla kredi türü hesaplanması için
        }
Beispiel #10
0
        static void Main(string[] args)
        {
            //Interfaceler tuttukları classların referans numaralarını tutabilirler.

            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager transportCreditManager       = new TransportCreditManager();
            ICreditManager mortgageCreditManager        = new MortgageCreditManager();
            ICreditManager artisanCreditManager         = new ArtisanCreditManager();

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

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


            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Application(artisanCreditManager, loggerServices);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCreditManager, transportCreditManager
            };


            //applicationManager.CreditPreInformation(credits);
        }
Beispiel #11
0
        static void Main(string[] args)
        {
            ICreditManager needCreditManager = new NeedCreditManager();
            //needCreditManager.Calculate();

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

            ICreditManager mortgageCreditManager = new MortgageCreditManager();
            //mortgageCreditManager.Calculate();
            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService filebaseLoggerService = new FileLoggerService();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(vehicleCreditManager, loggers);

            List <ICreditManager> credits = new List <ICreditManager> {
                needCreditManager, vehicleCreditManager
            };
            //applicationManager.MakeCreditInformation(credits);
        }
Beispiel #12
0
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");
            //Interface lerde implement edilen classların referans bilgilerini tutabilir.
            //O yüzden ICreditManager olarak değiştirdik.

            //NeedCreditManager needCreditManager = new NeedCreditManager();
            ICreditManager needCreditManager = new NeedCreditManager();

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

            //MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Apply(needCreditManager, fileLoggerService);

            List <ICreditManager> credits = new List <ICreditManager> {
                needCreditManager, vehicleCreditManager
            };


            //applicationManager.MakeInitialCreditInfo(credits);

            //DatabaseLoggerService.MakeInitialCreditInfo(credits);
        }
Beispiel #13
0
        //Interfaceses
        static void Main(string[] args)
        {
            //** ICreditManager dan referans alındı...//**//
            ICreditManager personalCreditManager  = new PersonalCreditManager();
            ICreditManager transportCreditManager = new TransportCreditManager();
            ICreditManager mortgageCreditManager  = new MortgageCreditManager();

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


            AplicationManager aplicationManager = new AplicationManager();

            aplicationManager.MakeAnApplication(mortgageCreditManager, new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalCreditManager
            };
            //aplicationManager.CreditInfo(credits);



            //**1.Yöntem iptal**//
            // PersonalCreditManager personalCreditManager = new PersonalCreditManager();
            //** personalCreditManager.Calculate(); **Aşağıda Referans alındı bu satır aşağıdan silindi.

            // TransportCreditManager transportCreditManager = new TransportCreditManager();
            //**transportCreditManager.Calculate(); **Aşağıda Referans alındı bu satır aşağıdan silindi.

            // MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
            //** mortgageCreditManager.Calculate(); **Aşağıda Referans alındı bu satır aşağıdan silindi.
        }
Beispiel #14
0
        static void Main(string[] args)
        {
            ICreditManager financeCreditManager = new FinanceCreditManager();
            //financeCreditManager.Calculate();

            ICreditManager whicleCreditManager = new WhicleCreditManager();
            //whicleCreditManager.Calculate();

            ICreditManager mortgageCreditManager = new MortgageCreditManager();
            //mortgageCreditManager.Calculate();

            ICreditManager soldierCreditManager = new SoldierCreditManager();

            Console.WriteLine("---------------");
            ApplicationManager    applicationManager = new ApplicationManager(); // Basvuru manager
            List <ILoggerService> loggers            = new List <ILoggerService>()
            {
                new DatabaseLoggerService(), new SmsbaseLoggerService()
            };

            applicationManager.DoApplication(new FinanceCreditManager(), loggers);//veya applicationManager.DoApplication(financeCreditManager)
            applicationManager.DoApplication(soldierCreditManager, new List <ILoggerService>()
            {
                new SmsbaseLoggerService(), new DatabaseLoggerService()
            });
            List <ICreditManager> credits = new List <ICreditManager>()
            {
                financeCreditManager, whicleCreditManager, mortgageCreditManager
            };
            // applicationManager.DoCreditInformation(credits);
        }
Beispiel #15
0
        static void Main(string[] args)
        {
            ICreditManager personalCreditManager  = new PersonalCreditManager();
            ICreditManager transportCreditManager = new TransportCreditManager();
            ICreditManager mortgageCreditManager  = new MortgageCreditManager();
            ICreditManager tradesCreditManager    = new TradesCreditManager();

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

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(personalCreditManager, loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalCreditManager, transportCreditManager
            };

            //applicationManager.Creditİnformation(credits);
        }
Beispiel #16
0
        static void Main(string[] args)
        {
            /*
             * burada ilk önce her kredinin ayrı ayrı hesapla methodunu çağırdık
             * sonra basvuru yap diye bir manager açtık onun içine ortak olan interface ten
             * türeyen nesne isteyerek hepsi kendi hesaplamarına gitmeyi sağladık
             * bu dependency injection dır
             */
            //ICreditManager mortgageCredit = new MortgageCreditManager();
            //mortgageCredit.Calculate();

            //ICreditManager vehicleCredit = new VehicleCreditManager();
            //vehicleCredit.Calculate();

            //ICreditManager personelCredit = new PersonelCreditManager();
            //personelCredit.Calculate();

            ICreditManager mortgageCredit = new MortgageCreditManager();

            ICreditManager vehicleCredit = new VehicleCreditManager();

            ICreditManager personelCredit = new PersonelCreditManager();

            ApplyManager applyManager = new ApplyManager();
            //applyManager.Apply(personelCredit);

            /*
             * Burada ise listeden gelenlerin kredierini hesaplattık
             */
            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personelCredit,
                vehicleCredit,
                mortgageCredit
            };

            applyManager.DoCreditInformation(credits);

            //Log kısmı
            ILoggerService dbloggerService   = new DbLoggerService();
            ILoggerService fileloggerService = new FileLoggerService();

            List <ILoggerService> loggerServices = new List <ILoggerService>()
            {
                dbloggerService,
                fileloggerService
            };

            //applyManager.Apply(personelCredit, loggerServices);
        }
Beispiel #17
0
        //**Method Injection**//
        public void MakeAnApplication(ICreditManager creditManager, ILoggerService loggerservice)
        {
            //**Başvuran bilgilerini değerlendir...
            //**bu şekilde yapılırsa tüm krediler konut kredisi üzerinden hesaplanır...
            //**Bu yanlış...** yukarıda public için ıcreditmanager referans olarak  gönderilir.//
            //**Parantez için boş olursa hangi kredi gönderilirse onun referansını almaz.

            MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();

            mortgageCreditManager.Calculate();
            loggerservice.Log();

            //**// Doğru Olan
        }
Beispiel #18
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager vehicleCreditManager         = new VehicleCreditManager();
            ICreditManager mortgageCreditManager        = new MortgageCreditManager();

            ApplicationManager applicationManager = new ApplicationManager();

            //applicationManager.MakeApplication(mortgageCreditManager);
            Console.WriteLine("Hello World!");

            List <ICreditManager> credits = new List <ICreditManager> {
                personalFinanceCreditManager
            };


            applicationManager.MakeCreditPreInformation(credits);
        }
Beispiel #19
0
        static void Main(string[] args)
        {
            /*
             * PersonelFinanceCreditManager personelFinanceCreditManager = new PersonelFinanceCreditManager();
             * personelFinanceCreditManager.Calculate();
             *
             * TransportCreditManager transportCreditManager = new TransportCreditManager();
             * transportCreditManager.Calculate();
             *
             * MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
             * mortgageCreditManager.Calculate();
             */

            //Görüldüğü üzere 3 yerde ICreditManager'ı implemente ettiği için ICreditManager'dan hepsini türetebilirim.
            ICreditManager personelFinanceCreditManager = new PersonelFinanceCreditManager();
            ICreditManager transportCreditManager       = new TransportCreditManager();
            ICreditManager mortgageCreditManager        = new MortgageCreditManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            //aşağıdaki şekilde de yazabilirim alternatifi(Not:List yaptım ondan hata verir)
            //applicationManager.MakeAnApplication(mortgageCreditManager, databaseLoggerService);
            //<applicationManager.MakeAnApplication(mortgageCreditManager, new DatabaseLoggerService());

            //List<ILoggerService> loggerServices = new List<ILoggerService>() { databaseLoggerService, fileLoggerService };
            //applicationManager.MakeAnApplication(transportCreditManager, loggerServices);

            //Hemen üstündeki 2 satırın alternatifidir. Tek satır yazılmak istenince
            applicationManager.MakeAnApplication(transportCreditManager, new List <ILoggerService>()
            {
                databaseLoggerService, fileLoggerService, smsLoggerService
            });


            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personelFinanceCreditManager, transportCreditManager
            };
            //applicationManager.MakeCreditPreNotification(credits);
        }
Beispiel #20
0
        static void Main(string[] args)
        {
            ICreditManager personalLoanCreditManager = new PersonalLoanCreditManager();
            ICreditManager mortgageCreditManager     = new MortgageCreditManager();
            ICreditManager vehicleLoanManager        = new VehicleLoanManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.BasvuruYap(personalLoanCreditManager, new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalLoanCreditManager, vehicleLoanManager
            };
            //  applicationManager.KrediOnBilgilendirmesiYap(credits);
        }
Beispiel #21
0
        static void Main(string[] args)
        {
            ICreditManager personalCreditManager = new PersonalCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.BasvuruYap(vehicleCreditManager, fileLoggerServce);

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

            //applicationManager.CreditPreInfo(credits);
        }
Beispiel #22
0
        static void Main(string[] args)
        {
            ICreditBaseManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditBaseManager vehicleCredıtManager         = new VehicleCredıtManager();
            ICreditBaseManager mortgageCreditManager        = new MortgageCreditManager();

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

            AppealManager appealManager = new AppealManager();

            appealManager.Appeal(personalFinanceCreditManager, fileLoggerService);

            List <ICreditBaseManager> credits = new List <ICreditBaseManager>()
            {
                personalFinanceCreditManager, vehicleCredıtManager
            };

            //appealManager.CreditInformation(credits);
        }
Beispiel #23
0
        static void Main(string[] args)
        {
            ICreditManager demandCreditManager   = new DemandCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Appeal(vehicleCreditManager, databaseLoggerService);

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

            //applicationManager.DoPreInfo(credits);
        }
Beispiel #24
0
        static void Main(string[] args)
        {
            ConsumerCreditManager consumerCreditManager = new ConsumerCreditManager();
            //consumerCreditManager.Calculate();

            VehicleCreditManager vehicleCreditManager = new VehicleCreditManager();
            //vehicleCreditManager.Calculate();

            MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
            //mortgageCreditManager.Calculate();

            BasvuruManager basvuruManager = new BasvuruManager();
            //basvuruManager.BasvuruYap(consumerCreditManager);

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

            basvuruManager.KrediOnBilgilendirmesiYap(credits);
        }
Beispiel #25
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager vehicleCreditManager         = new VehicleCreditManager();
            ICreditManager mortgageCreditManager        = new MortgageCreditManager();

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


            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.DoApplication(new ArtisanCredit(), new SmsLoggerService());

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

            //applicationManager.DoCreditPreNotification(credits);
        }
Beispiel #26
0
        static void Main(string[] args)
        {
            ICreditManager needCreditManager     = new NeedCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();

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


            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.DoApplication(mortgageCreditManager, loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                needCreditManager, vehicleCreditManager
            };
            //applicationManager.DoCreditInforming(credits);
        }
Beispiel #27
0
        static void Main(string[] args)
        {
            ICreditManager transportationCreditManager = new TransportationCreditManager();
            ICreditManager needsCreditManager          = new NeedsCreditManager();
            ICreditManager mortgageCreditManager       = new MortgageCreditManager();
            ICreditManager esnafCreditManager          = new EsnafCreditManager();

            // Basvuru sinifimizdan apply i cagirip tasit kredisine basvurttuk.
            ApplyManager applyManager = new ApplyManager();

            applyManager.Apply(esnafCreditManager, new List <ILoggerService> {
                new DatabaseLoggerService(), new SmsLoggerService()
            });
            // Kullanicinin cekecegi kredi hangisinde daha az masrafli olacaksa onu gormesi icin butun kredilerin tipinde bir liste olusturup bunu bilgi alma methoduna gonderdik.
            List <ICreditManager> creditList = new List <ICreditManager>();

            creditList.Add(transportationCreditManager);
            creditList.Add(needsCreditManager);
            creditList.Add(mortgageCreditManager);
            //applyManager.GiveCreditInformation(creditList);
        }
Beispiel #28
0
        static void Main(string[] args)
        {
            ConsumerCreditManager consumerCreditManager = new ConsumerCreditManager();
            VehicleCreditManager  vehicleCreditManager  = new VehicleCreditManager();
            MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();

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


            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Apply(consumerCreditManager, databaseLoggerService);

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

            //applicationManager.CreditPreInfo(credits);
        }
Beispiel #29
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager transportCreditManager       = new TransportCreditManager();
            ICreditManager mortgageCreditManager        = new MortgageCreditManager();

            ILoggerService dataBaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLogerService      = new FileLoggerService();

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Apply(new TradesmanCreditManager(), new List <ILoggerService> {
                new DatabaseLoggerService(), new SmsLoggerService()
            });

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCreditManager, transportCreditManager
            };

            //applicationManager.GiveCreditPreliminaryInformation(credits);
        }
        static void Main(string[] args)
        {
            MortgageCreditManager mortgageCreditManager = new MortgageCreditManager();
            //interface can also be used
            ICreditBaseManager   consumerCreditManager = new ConsumerCreditManager();
            VehicleCreditManager vehicleCreditManager  = new VehicleCreditManager();
            ApplicationManager   applicationManager    = new ApplicationManager();


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

            //ne yazarsan o ---------------------------------- burası new DatabaseLoggerService() de olabilir
            applicationManager.Apply(vehicleCreditManager, databaseLoggerService);

            List <ICreditBaseManager> credits = new List <ICreditBaseManager>()
            {
                consumerCreditManager, vehicleCreditManager, mortgageCreditManager
            };

            //applicationManager.CreditInfo(credits);
        }