Example #1
0
 public static void BootstrapForTests(
     ISystemLog systemLog,
     IOfficeLocationDatabaseSettings officeLocationDatabaseSettings,
     ICountryWebApiSettings countryWebApiSettings,
     IEmailSettings emailSettings,
     IGroupNameConstants groupNameConstants)
 {
     BootstrapAll(systemLog,
                  officeLocationDatabaseSettings,
                  countryWebApiSettings,
                  emailSettings,
                  groupNameConstants);
 }
Example #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;
        }
Example #3
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);
        }
Example #4
0
 public UserWrapper(IGroupNameConstants groupNameConstants)
 {
     GroupNameConstants = groupNameConstants;
 }