/// <summary> /// Initializes a new instance of the <see cref="ProfileStudioSI"/> class /// </summary> /// <param name="testdataRepositorySettings">The settings for test data repository</param> /// <param name="dsfService">The dsf service</param> /// <param name="erService">The er service</param> public ProfileStudioSI(IOptions <TestdataRepositorySettings> testdataRepositorySettings, IDSF dsfService, IER erService) { _testdataRepositorySettings = testdataRepositorySettings.Value; _dsfService = dsfService; _erService = erService; _registerService = new RegisterStudioSI(testdataRepositorySettings, dsfService, erService); }
/// <summary> /// Initializes a new instance of the <see cref="RegisterAppSI"/> class /// </summary> /// <param name="dfs">The dfs</param> /// <param name="er">The er</param> /// <param name="logger">The logger</param> /// <param name="platformSettings">The platform settings</param> public RegisterAppSI(IDSF dfs, IER er, ILogger <RegisterAppSI> logger, IOptions <PlatformSettings> platformSettings) { _dsf = dfs; _er = er; _logger = logger; _platformSettings = platformSettings.Value; }
/// <summary> /// Initializes a new instance of the <see cref="RegisterAppSI"/> class /// </summary> /// <param name="dsf">The dsf</param> /// <param name="er">The er</param> /// <param name="logger">The logger</param> /// <param name="httpContextAccessor">The http context accessor </param> /// <param name="cookieOptions">The cookie options </param> /// <param name="httpClientAccessor">The http client accessor </param> public RegisterAppSI( IDSF dsf, IER er, ILogger <RegisterAppSI> logger, IHttpContextAccessor httpContextAccessor, IOptions <JwtCookieOptions> cookieOptions, IHttpClientAccessor httpClientAccessor) { _dsf = dsf; _er = er; _logger = logger; _httpContextAccessor = httpContextAccessor; _cookieOptions = cookieOptions.Value; _client = httpClientAccessor.RegisterClient; }
/// <summary> /// Initializes a new instance of the <see cref="RegisterAppSI"/> class /// </summary> /// <param name="dsf">The dsf</param> /// <param name="er">The er</param> /// <param name="logger">The logger</param> /// <param name="httpContextAccessor">The http context accessor </param> /// <param name="settings">The application settings.</param> /// <param name="httpClientAccessor">The http client accessor </param> public RegisterAppSI( IDSF dsf, IER er, ILogger <RegisterAppSI> logger, IHttpContextAccessor httpContextAccessor, IOptionsMonitor <AppSettings> settings, IHttpClientAccessor httpClientAccessor) { _dsf = dsf; _er = er; _logger = logger; _httpContextAccessor = httpContextAccessor; _settings = settings.CurrentValue; _client = httpClientAccessor.RegisterClient; }
/// <summary> /// Initializes a new instance of the <see cref="RegisterAppSI"/> class /// </summary> /// <param name="dfs">The dfs</param> /// <param name="er">The er</param> /// <param name="logger">The logger</param> /// <param name="platformSettings">The platform settings</param> /// <param name="httpContextAccessor">The http context accessor </param> /// <param name="cookieOptions">The cookie options </param> /// <param name="httpClientAccessor">The http client accessor </param> public RegisterAppSI( IDSF dfs, IER er, ILogger <RegisterAppSI> logger, IOptions <PlatformSettings> platformSettings, IHttpContextAccessor httpContextAccessor, IOptions <JwtCookieOptions> cookieOptions, IHttpClientAccessor httpClientAccessor) { _dsf = dfs; _er = er; _logger = logger; _platformSettings = platformSettings.Value; _httpContextAccessor = httpContextAccessor; _cookieOptions = cookieOptions.Value; _client = httpClientAccessor.RegisterClient; }
/// <summary> /// Initializes a new instance of the <see cref="RegisterAppSI"/> class /// </summary> /// <param name="dsf">The dsf</param> /// <param name="er">The er</param> /// <param name="logger">The logger</param> /// <param name="httpContextAccessor">The http context accessor </param> /// <param name="settings">The application settings.</param> /// <param name="httpClientAccessor">The http client accessor </param> public RegisterAppSI( IOptions <PlatformSettings> platformSettings, IDSF dsf, IER er, ILogger <RegisterAppSI> logger, IHttpContextAccessor httpContextAccessor, IOptionsMonitor <AppSettings> settings, HttpClient httpClient) { _dsf = dsf; _er = er; _logger = logger; _httpContextAccessor = httpContextAccessor; _settings = settings.CurrentValue; httpClient.BaseAddress = new Uri(platformSettings.Value.ApiRegisterEndpoint); httpClient.DefaultRequestHeaders.Add(General.SubscriptionKeyHeaderName, platformSettings.Value.SubscriptionKey); httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); _client = httpClient; }
public RegisterMockSI(IDSF dsfService, IER erService) { _dsfService = dsfService; _erService = erService; }
/// <summary> /// Initializes a new instance of the <see cref="RegisterStudioSI"/> class /// </summary> /// <param name="testdataRepositorySettings">The test data repository settings</param> /// <param name="dsfService">The dsf service</param> /// <param name="erService">The er service</param> public RegisterStudioSI(IOptions <TestdataRepositorySettings> testdataRepositorySettings, IDSF dsfService, IER erService) { _testdataRepositorySettings = testdataRepositorySettings.Value; _dsfService = dsfService; _erService = erService; }