コード例 #1
0
        static void Main(string[] args)
        {
            ICreditManager demandCreditManager    = new DemandCreditManager();
            ICreditManager transportCreditManager = new TransportCreditManager();
            ICreditManager houseCreditManager     = new HouseCreditManager();
            ICreditManager artisanCreditManager   = new ArtisanCreditManager();

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

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.DoApplication(artisanCreditManager, loggerServices);

            List <ICreditManager> credits = new List <ICreditManager> {
                demandCreditManager, houseCreditManager, transportCreditManager
            };

            //applicationManager.DoCreditPreinformation(credits);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: recepcigdem/KampIntro
        static void Main(string[] args)
        {
            ICreditManager demandCreditManager    = new DemandCreditManager();
            ICreditManager vehicleCreditManager   = new VehicleCreditManager();
            ICreditManager mortgageCreditManager  = new MortgageCreditManager();
            ICreditManager artificerCreditManager = new ArtificerCreditManager();

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

            AppealManager appealManager = new AppealManager();

            appealManager.DoAppeal(artificerCreditManager, new List <ILoggerService>()
            {
                databaseLoggerService, new SmsLoggerService()
            });

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

            //appealManager.DoInfoByCredit(credits);
        }
コード例 #3
0
        static void Main(string[] args)
        {
            ICreditManager demandCreditManager   = new DemandCreditManager();
            ICreditManager vehicleCreditManager  = new VehicleCreditManager();
            ICreditManager mortgageCreditManager = new MortgageCreditManager();

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

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.Appeal(vehicleCreditManager, databaseLoggerService);

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

            //applicationManager.DoPreInfo(credits);
        }
コード例 #4
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);
        }