Beispiel #1
0
        static void Main(string[] args)
        {
            // classlar ve interfaceler kendilerini implemente
            // eden classların referanslarını tutabilir
            ICreditManager consumerCreditManager = new ConsumerCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager homeCreditManager     = new HomeCreditManager();

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

            ApplicantManager applicantManager = new ApplicantManager();

            applicantManager.Apply(homeCreditManager, databaseLoggerService);


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

            credits.Add(consumerCreditManager);
            credits.Add(vehicleCreditManager);

            applicantManager.CreditPreview(credits);


            Console.Read();
        }
Beispiel #2
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);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            /*NeedCreditManager needCreditManager = new NeedCreditManager();
             * ICreditManager needCreditManager = new NeedCreditManager();
             * needCreditManager.Calculate();
             *
             * VehicleCreditManager vehicleCreditManager = new VehicleCreditManager();
             * ICreditManager vehicleCreditManager = new VehicleCreditManager();
             * vehicleCreditManager.Calculate();
             *
             * HomeCreditManager homeCreditManager = new HomeCreditManager();
             * ICreditManager homeCreditManager = new HomeCreditManager();
             * homeCreditManager.Calculate(); */

            ICreditManager needCreditManager    = new NeedCreditManager();
            ICreditManager vehicleCreditManager = new VehicleCreditManager();
            ICreditManager homeCreditManager    = new HomeCreditManager();

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

            RecourseManager recourseManager = new RecourseManager();

            recourseManager.DoRecourse(homeCreditManager, new DatabaseLoggerService()); // direk method içindede newlenebilir

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                homeCreditManager, needCreditManager
            };
            //recourseManager.CreditPreliminaryİnformation(credits);
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            ICreditManager homeCreditManager    = new HomeCreditManager();
            ICreditManager vehicleCreditManager = new VehicleCreditManager();

            ILoggerService dataBaseLoggerServices = new DataBaseLoggerService();
            ILoggerService fileLoggerServices     = new FileLoggerService();

            SummitManager summitManager = new SummitManager();

            summitManager.Summit(homeCreditManager, dataBaseLoggerServices);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                homeCreditManager, vehicleCreditManager
            };
            //summitManager.CreditInformation(credits);
        }
Beispiel #5
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 #6
0
        static void Main(string[] args)
        {
            ICreditManager demandCreditManager  = new DemandCreditManager();
            ICreditManager vehicleCreditManager = new VehicleCreditManager();
            ICreditManager homeCreditManager    = new HomeCreditManager();
            ICreditManager tradeCreditManager   = new TradeCreditManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.DoApplication(tradeCreditManager, smsLoggerService);


            List <ICreditManager> credits = new List <ICreditManager>()
            {
                demandCreditManager, vehicleCreditManager
            };
            //applicationManager.DoCreditInformation(credits);
        }
Beispiel #7
0
        static void Main(string[] args)
        {
            ICreditManager consumerCreditManager = new ConsumerCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager homeCreditManager     = new HomeCreditManager();

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

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.BasvuruYap(new VehicleCreditManager(), loggers);

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

            //applicationManager.KrediOnBilgilendirmesiYap(credits);
        }