예제 #1
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
            };
        }
예제 #2
0
파일: Program.cs 프로젝트: omrbln/KampIntro
        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);
        }
예제 #3
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);
        }