Beispiel #1
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager transportCreditManager       = new TransportCreditManager();
            ICreditManager mortgageLoanManager          = new MortgageLoanManager();

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

            AppealManager appealManager = new AppealManager();

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

            appealManager.MakeApp(mortgageLoanManager, loggers);
            //appealManager.MakeApp(mortgageLoanManager, new DatabaseLoggerService()); bu şekildede yapılabilir *1* işaret, olan satır kullanılmadan

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCreditManager, transportCreditManager
            };
            //appealManager.CreditPriorKnowledge(credits);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCredit = new PersonalFinanceCredit();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager mortgageCreditManager = new MortgageCredit();

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

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



            AppealManager appealManager = new AppealManager();

            appealManager.MakeAnApplication(new ArtisanCreditManager(), loggers);



            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCredit, vehicleCreditManager
            };
        }
Beispiel #3
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 #4
0
        static void Main(string[] args)
        {
            //ConsumerLoanManager consumerLoanManager = new ConsumerLoanManager();
            //consumerLoanManager.Calculate();

            //VehicleLoanManager vehicleLoanManager = new VehicleLoanManager();
            //vehicleLoanManager.Calculate();

            //MortgageLoanManager mortgageLoanManager = new MortgageLoanManager();
            //mortgageLoanManager.Calculate();

            //Yukarıdaki ve aşağıdaki ifadeler birebir aynı şeyi ifade ediyor

            //ILoanManager consumerLoanManager = new ConsumerLoanManager();
            //consumerLoanManager.Calculate();

            //ILoanManager vehicleLoanManager = new VehicleLoanManager();
            //vehicleLoanManager.Calculate();

            //ILoanManager mortgageLoanManager = new MortgageLoanManager();
            //mortgageLoanManager.Calculate();



            ILoanManager consumerLoanManager = new ConsumerLoanManager();
            ILoanManager vehicleLoanManager  = new VehicleLoanManager();
            ILoanManager mortgageLoanManager = new MortgageLoanManager();

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

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

            AppealManager appealManager = new AppealManager();

            appealManager.MakeAnApplication(new TradesmanLoanManager(), loggers);

            List <ILoanManager> loans = new List <ILoanManager>()
            {
                consumerLoanManager, vehicleLoanManager, mortgageLoanManager
            };

            //appealManager.MakeLoanPrenotification(loans);
        }
Beispiel #5
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 #6
0
        static void Main(string[] args)
        {
            ICrediManager requirementCrediManager = new RequirementCrediManager();
            ICrediManager vehichleCrediManager    = new VehichleCrediManager();
            ICrediManager morgıcCrediManager      = new MorgıcCrediManager();

            AppealManager appealManager = new AppealManager();

            appealManager.SetAppeal(requirementCrediManager, new List <ILoggerService> ()
            {
                new DatabaseLoggerService(), new FileLoggerService()
            });

            List <ICrediManager> credits = new List <ICrediManager>()
            {
                requirementCrediManager, morgıcCrediManager
            };

            // appealManager.CrediInformation(credits);
        }
Beispiel #7
0
        static void Main(string[] args)
        {
            ICreditManager needCreditManager    = new NeedCreditManager();
            ICreditManager vehicleCreditManager = new VehicleCreditManager();
            ICreditManager homeCreditManager    = new HomeCreditManager();

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

            AppealManager appealManager = new AppealManager();

            appealManager.BasvuruYap(vehicleCreditManager, fileLoggerService);

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

            //appealManager.KrediOnBilgilendirmesiYap(credits);
        }
Beispiel #8
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCredit = new PersonalFinanceCredit();
            ICreditManager transportCredit       = new TransportCredit();
            ICreditManager mortgageLoanManager   = new MortgageLoanManager();

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



            AppealManager appealManger = new AppealManager();

            appealManger.BasvuruYap(personalFinanceCredit, new DatabaseLoggerService());

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCredit
            };
        }
Beispiel #9
0
        static void Main(string[] args)
        {
            ICreditBaseManager financeCredit = new FinanceCredit();
            ICreditBaseManager vehicleCredit = new VehicleCredit();
            ICreditBaseManager mortgage      = new Mortgage();

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


            AppealManager appealManager = new AppealManager();

            appealManager.Appeal(new ArtisanCredit(), new SmsLogger());

            List <ICreditBaseManager> credits = new List <ICreditBaseManager>()
            {
                financeCredit, vehicleCredit
            };

            //appealManager.CreditPreInfo(credits);
        }
Beispiel #10
0
        static void Main(string[] args)
        {
            ICreditManager personalFinanceCreditManager = new PersonalFinanceCreditManager();
            ICreditManager transportCreditManager       = new TransportCreditManager();
            ICreditManager housingLoanManager           = new HousingLoanManager();

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

            AppealManager appealManager = new AppealManager();

            appealManager.MakeAnApplication(personalFinanceCreditManager, databaseLoggerService);



            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personalFinanceCreditManager, transportCreditManager
            };
            //appealManager.Creditİnformation(credits);
        }
Beispiel #11
0
        static void Main(string[] args)
        {
            //PersonalFinanceCreditManager personalFinanceCreditManager1 = new PersonalFinanceCreditManager();
            //personalFinanceCreditManager1.Calculate();

            //TransportCreditManager transportCreditManager1 = new TransportCreditManager();
            //transportCreditManager1.Calculate();

            //MortgageLoanManager mortgageLoanManager1 = new MortgageLoanManager();
            //mortgageLoanManager1.Calculate();

            ///////////////////////////////////////////////////////////////////////////////////////////////////////

            ILoanManager personalFinanceCreditManager2 = new PersonalFinanceCreditManager();
            ILoanManager transportCreditManager2       = new TransportCreditManager();
            ILoanManager mortgageLoanManager2          = new MortgageLoanManager();

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

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

            appealManager.DoAppeal(mortgageLoanManager2, loggers);
            //appealManager.DoAppeal(new ArtisanLoanManager(), new List<ILoggerService> { databaseLoggerService, smsLoggerService });

            // Polymorphism

            List <ILoanManager> loans = new List <ILoanManager>()
            {
                personalFinanceCreditManager2, transportCreditManager2
            };

            //appealManager.DoCreditPreliminaryInformation(loans);
        }