Esempio n. 1
0
        static void Main(string[] args)
        {
            RequirementManager    requirementManager    = new RequirementManager();
            TransportCrediManager transportCrediManager = new TransportCrediManager();
            HouseCrediManager     houseCrediManager     = new HouseCrediManager();
            ArtisanManager        artisanManager        = new ArtisanManager();

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

            List <ILoggerService> loggers = new List <ILoggerService>()
            {
                smsLoogerService, databaseLoggerService, fileLoggerService
            };
            List <ICrediManager> credits = new List <ICrediManager>()
            {
                requirementManager, transportCrediManager, houseCrediManager, artisanManager
            };

            ApplicationManager applicationManager = new ApplicationManager();

            applicationManager.MakeApplication(artisanManager, loggers);



            //applicationManager.MakeCreditInformation(credits);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            ICreditBaseManager requirementManager = new RequirementManager();

            ICreditBaseManager vehicleCreditManager = new VehicleCreditManager();

            ICreditBaseManager housingCreditManager = new HousingCreditManager();

            ILoggerService dataBaseLoggerService = new DatabaseLoggerService();

            ILoggerService fileBaseLoggerService = new FilebaseLoggerService();

            ApplyManager applyManager = new ApplyManager();

            applyManager.Apply(vehicleCreditManager, fileBaseLoggerService);

            List <ICreditBaseManager> credits = new List <ICreditBaseManager>()
            {
                requirementManager, vehicleCreditManager
            };
        }