Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ICreditManager personalCreditManager = new PersonalCreditManager();
            //personalCreditManager.Calculate();

            ICreditManager carCreditManager = new CarCreditManager();
            //carCreditManager.Calculate();

            ICreditManager residenceCreditManager = new ResidenceCreditManager();
            //residenceCreditManager.Calculate();


            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Apply(residenceCreditManager, new DatabaseLoggerService());
            applicationManager.Apply(carCreditManager, new FileLoggerService());
            applicationManager.Apply(personalCreditManager, new DatabaseLoggerService());
            Console.WriteLine("------");

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalCreditManager, carCreditManager, residenceCreditManager,
                new PersonalCreditManager()
            };                               //.....

            applicationManager.CreditInformation(credits);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            PersonalFinanceCredit personalFinanceCredit = new PersonalFinanceCredit();
            CarCreditManager      carCreditManager      = new CarCreditManager();
            MortgageManager       mortgageManager       = new MortgageManager();

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

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


            ApplicantManager applicantManager = new ApplicantManager();

            applicantManager.BasvuruYap(new ArtisanCredit(), loggers);


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

            //applicantManager.KrediOnbilgilendirmesiYap(creditList);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        //Interface
        static void Main(string[] args)
        {
            //Bireysel Kredi
            ICreditManager personalCreditManager = new PersonalCreditManager();
            //Ev Kredisi
            ICreditManager homeCreditManager = new HomeCreditManager();
            //Araba Kredisi
            ICreditManager carCreditManager = new CarCreditManager();

            //Ev Kredisi Basvurusu Yap
            ApplyManager applyManager = new ApplyManager();

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

            // çoklu kredi seçip hesaplatarak hangisi uygun kıyaslamak
            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalCreditManager,
                homeCreditManager
            };

            applyManager.CreditPreInform(credits);
        }
Ejemplo n.º 5
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);
        }
        static void Main(string[] args)
        {
            NeedCreditManager  needCreditManager  = new NeedCreditManager();
            ICreditManager     carCreditManager   = new CarCreditManager();
            HouseCreditManager houseCreditManager = new HouseCreditManager();

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

            Console.WriteLine("-----------");

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

            ReferenceManager referenceManager = new ReferenceManager();

            referenceManager.ReferenceMade(new TradeCreditManager(), loggers);

            Console.WriteLine("-----------");

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

            referenceManager.MakeCreditAdvanceNotification(credits);
        }
Ejemplo n.º 7
0
        static void Main(string[] args)
        {
            ICreditManager dailyCreditManager = new DailyCreditManager();
            ICreditManager carCreditManager   = new CarCreditManager();
            ICreditManager houseCreditManager = new HouseCreditManager(); // HouseCreditManager houseCreditManager = new HouseCreditManager();   - same thing

            ApplyForCreditManager applyForCreditManager = new ApplyForCreditManager();
            DatabaseLoggerService databaseLoggerService = new DatabaseLoggerService();

            applyForCreditManager.Apply(carCreditManager, databaseLoggerService);


            List <ICreditManager> credits = new List <ICreditManager>()
            {
                dailyCreditManager, carCreditManager
            };                                                                                                //customer ask for montly payment then employee selects from UI

            //applyForCreditManager.GiveCreditInformation(credits);
        }
Ejemplo n.º 8
0
        static void Main(string[] args)
        {
            //PersonelFinanceCreditManager personelFinanceCreditManager = new PersonelFinanceCreditManager();
            //personelFinanceCreditManager.Calculate();

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

            //HouseCreditManager houseCreditManager = new HouseCreditManager();
            //houseCreditManager.Calculate();

            //Console.WriteLine("------------------interface ile-----");
            ////Interface alınan sınıf, alan sınıfın referansını tutabilir.
            ICreditManager personelFinanceCreditManager1 = new PersonelFinanceCreditManager();
            //personelFinanceCreditManager1.Calculate();

            ICreditManager carCreditManager1 = new CarCreditManager();
            //carCreditManager1.Calculate();

            ICreditManager houseCreditManager1 = new HouseCreditManager();
            //houseCreditManager1.Calculate();
            //Console.WriteLine("----interface referans gönderimiyle-----");
            ILoggerService databaseLoggerService = new DatabaseLoggerService();
            ILoggerService fileLoggerService     = new FileLoggerService();


            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.DoApplication(personelFinanceCreditManager1, fileLoggerService);
            //applicationManager.DoApplication(carCreditManager1);
            //applicationManager.DoApplication(houseCreditManager1);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personelFinanceCreditManager1, carCreditManager1, houseCreditManager1
            };

            //applicationManager.CreditPreView(credits);
        }
Ejemplo n.º 9
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);
        }
Ejemplo n.º 10
0
        static void Main(string[] args)
        {
            IBankCreditManager carCreditManager             = new CarCreditManager();
            IBankCreditManager houseCreditManager           = new HouseCreditManager();
            IBankCreditManager personelFinanceCreditManager = new PersonalFinanceCreditManager();
            ILoggerService     databaseLoggerService        = new DatabaseLoggerService();
            ILoggerService     fileLoggerService            = new FileLoggerService();
            ILoggerService     smsLoggerService             = new SmsLoggerService();

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

            CreditApplicationManager creditApplicationManager = new CreditApplicationManager();

            creditApplicationManager.CreditApplication(personelFinanceCreditManager, loggers);

            List <IBankCreditManager> bankCreditManagers = new List <IBankCreditManager>()
            {
                personelFinanceCreditManager, carCreditManager, houseCreditManager
            };
            //creditApplicationManager.GetCreditInformation(bankCreditManagers);
        }