Beispiel #1
0
        static void Main(string[] args)
        {
            ICreditManager financeCreditManager = new FinanceCreditManager();
            //financeCreditManager.Calculate();

            ICreditManager whicleCreditManager = new WhicleCreditManager();
            //whicleCreditManager.Calculate();

            ICreditManager mortgageCreditManager = new MortgageCreditManager();
            //mortgageCreditManager.Calculate();

            ICreditManager soldierCreditManager = new SoldierCreditManager();

            Console.WriteLine("---------------");
            ApplicationManager    applicationManager = new ApplicationManager(); // Basvuru manager
            List <ILoggerService> loggers            = new List <ILoggerService>()
            {
                new DatabaseLoggerService(), new SmsbaseLoggerService()
            };

            applicationManager.DoApplication(new FinanceCreditManager(), loggers);//veya applicationManager.DoApplication(financeCreditManager)
            applicationManager.DoApplication(soldierCreditManager, new List <ILoggerService>()
            {
                new SmsbaseLoggerService(), new DatabaseLoggerService()
            });
            List <ICreditManager> credits = new List <ICreditManager>()
            {
                financeCreditManager, whicleCreditManager, mortgageCreditManager
            };
            // applicationManager.DoCreditInformation(credits);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            ICreditManager financeCreditManager = new FinanceCreditManager();
            //financeCreditManager.Calculate();
            ICreditManager transportCreditManager = new TransportCreditManager();
            //transportCreditManager.Calculate();
            ICreditManager mortageCreditManager = new MortageCreditManager();
            //mortageCreditManager.Calculate();


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


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



            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeAnApplication(new ArtisanCredit(), loggers);

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                transportCreditManager, mortageCreditManager
            };
            //applicationManager.MakeCreditPrenotification(credits);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            ICreditManager financeCreditManager   = new FinanceCreditManager();
            ICreditManager transportCreditManager = new TransportCreditManager();
            ICreditManager mortgageCreditManager  = new MortgageCreditManager();

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

            ApplyManager applyManager = new ApplyManager();

            applyManager.Apply(transportCreditManager,
                               new List <ILoggerService> {
                new DataBaseLoggerService(), new SmsLoggerService()
            });

            List <ICreditManager> credits = new List <ICreditManager>()
            {
                financeCreditManager, transportCreditManager
            };
            //applyManager.CreditPreInfo(credits);
        }