public CountryWebApiGateway(
     ICountryWebApiSettings countryWebApiSettings,
     WebApiServiceCaller webApiServiceCaller)
 {
     _countryWebApiSettings = countryWebApiSettings;
     _webApiServiceCaller   = webApiServiceCaller;
 }
Пример #2
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;
        }