public CountryWebApiGateway(
     ICountryWebApiSettings countryWebApiSettings,
     WebApiServiceCaller webApiServiceCaller)
 {
     _countryWebApiSettings = countryWebApiSettings;
     _webApiServiceCaller   = webApiServiceCaller;
 }
Exemplo n.º 2
0
 public static void BootstrapForTests(
     ISystemLog systemLog,
     IOfficeLocationDatabaseSettings officeLocationDatabaseSettings,
     ICountryWebApiSettings countryWebApiSettings,
     IEmailSettings emailSettings,
     IGroupNameConstants groupNameConstants)
 {
     BootstrapAll(systemLog,
                  officeLocationDatabaseSettings,
                  countryWebApiSettings,
                  emailSettings,
                  groupNameConstants);
 }
Exemplo n.º 3
0
        private static void BootstrapAll(
            ISystemLog logForNetSystemLog,
            IOfficeLocationDatabaseSettings officeLocationDatabaseSettings,
            ICountryWebApiSettings countryWebApiSettings,
            IEmailSettings emailSettings,
            IGroupNameConstants groupNameConstants)
        {
            var webServiceCaller = new WebApiServiceCaller(logForNetSystemLog);

            MasterFactory.OfficeDataTableGateway =
                new OfficeDataTableGateway(officeLocationDatabaseSettings, logForNetSystemLog);
            MasterFactory.CountryWebApiGateway =
                new CountryWebApiGateway(countryWebApiSettings, webServiceCaller);
            MasterFactory.EmailClient        = new EmailClient(emailSettings);
            MasterFactory.GroupNameConstants = groupNameConstants;
        }
Exemplo n.º 4
0
        public static void BootstrapForSystem(
            string logName,
            IOfficeLocationDatabaseSettings officeLocationDatabaseSettings,
            ICountryWebApiSettings countryWebApiSettings,
            IEmailSettings emailSettings,
            IGroupNameConstants groupNameConstants)
        {
            LoggingBootstrapper.StartupLog(logName);

            var logForNetSystemLog = new LogForNetSystemLog();

            BootstrapAll(logForNetSystemLog,
                         officeLocationDatabaseSettings,
                         countryWebApiSettings,
                         emailSettings,
                         groupNameConstants);
        }