예제 #1
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);
        }
예제 #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
            };
        }
예제 #3
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);
        }
예제 #4
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);
        }
예제 #5
0
        static void Main(string[] args)
        {
            ICreditManager personelCreditManager  = new PersonalFinanceCredit();
            ICreditManager transportCreditManager = new TransportCreditManager();
            ICreditManager housingLoanManager     = new HousingLoanManager();

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


            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeAnApplication(transportCreditManager, fileLoggerService);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                personelCreditManager, transportCreditManager
            };
            //applicationManager.MakeCreditPreNotification(credits);
        }
예제 #6
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
            };
        }