Example #1
0
        static void Main(string[] args)
        {
            ICreditManager needCreditManager      = new NeedCreditManager();
            ICreditManager vehicleCreditManager   = new VehicleCreditManager();
            ICreditManager housingCreditManager   = new HousingCreditManager();
            ICreditManager tradesmanCreditManager = new TradesmanCreditManager();

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

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

            RecourseManager recourseManager = new RecourseManager();

            recourseManager.DoRecourse(tradesmanCreditManager, loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                needCreditManager, vehicleCreditManager
            };
            //recourseManager.CreditGivePreliminaryInformation(credits);
        }
Example #2
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);
        }