/// <summary> /// Initializes a new instance of the <see cref="ServiceAPIController"/> class. /// </summary> /// <param name="settings">The repository settings (set in Startup.cs).</param> /// <param name="generalSettings">The general settings (set in Startup.cs).</param> /// <param name="compilationService">The compilation service (set in Startup.cs).</param> /// <param name="authorizationService">The authorization service (set in Startup.cs).</param> /// <param name="logger">The logger (set in Startup.cs).</param> /// <param name="registerService">The register service (set in Startup.cs).</param> /// <param name="formService">The form service.</param> /// <param name="repositoryService">The repository service (set in Startup.cs).</param> /// <param name="executionService">The execution service (set in Startup.cs).</param> /// <param name="profileService">The profile service (set in Startup.cs).</param> /// <param name="httpContextAccessor">The http context accessor.</param> /// <param name="workflowSI">The workflow service.</param> public ServiceAPIController( IOptions <ServiceRepositorySettings> settings, IOptions <GeneralSettings> generalSettings, ICompilation compilationService, IAuthorization authorizationService, ILogger <ServiceAPIController> logger, IRegister registerService, IForm formService, IRepository repositoryService, IExecution executionService, IProfile profileService, IHttpContextAccessor httpContextAccessor, IWorkflowSI workflowSI, IInstance instanceSI) { _settings = settings.Value; _generalSettings = generalSettings.Value; _compilation = compilationService; _authorization = authorizationService; _logger = logger; _register = registerService; _form = formService; _repository = repositoryService; _execution = executionService; _profile = profileService; _userHelper = new UserHelper(_profile, _register); _httpContextAccessor = httpContextAccessor; _workflowSI = workflowSI; _instance = instanceSI; }
/// <summary> /// Initializes a new instance of the <see cref="InstanceController"/> class /// </summary> /// <param name="authorizationService">The authorizationService (set in Startup.cs)</param> /// <param name="logger">The logger (set in Startup.cs)</param> /// <param name="registerService">The registerService (set in Startup.cs)</param> /// <param name="formService">The form</param> /// <param name="repositoryService">The repository service (set in Startup.cs)</param> /// <param name="serviceExecutionService">The serviceExecutionService (set in Startup.cs)</param> /// <param name="profileService">The profileService (set in Startup.cs)</param> /// <param name="archiveService">The archive service</param> /// <param name="httpContextAccessor">The http context accessor</param> /// <param name="testDataService">the test data service handler</param> /// <param name="workflowSI">the workflow service handler</param> public InstanceController( IAuthorization authorizationService, ILogger <InstanceController> logger, IRegister registerService, IForm formService, IRepository repositoryService, IExecution serviceExecutionService, IProfile profileService, IArchive archiveService, ITestdata testDataService, IHttpContextAccessor httpContextAccessor, IWorkflowSI workflowSI) { _authorization = authorizationService; _logger = logger; _register = registerService; _form = formService; _repository = repositoryService; _execution = serviceExecutionService; _userHelper = new UserHelper(profileService, _register); _archive = archiveService; _testdata = testDataService; _httpContextAccessor = httpContextAccessor; _workflowSI = workflowSI; }
/// <summary> /// Initializes a new instance of the <see cref="ManualTestingController"/> class /// </summary> /// <param name="testdataService">The testDataService (configured in Startup.cs)</param> /// <param name="profileService">The profileService (configured in Startup.cs)</param> /// <param name="registerService">The registerService (configured in Startup.cs)</param> /// <param name="authorizationService">The authorizationService (configured in Startup.cs)</param> /// <param name="repositorySettings">the repository setting service handler</param> /// <param name="giteaWrapper">the gitea wrapper handler</param> /// <param name="contextAccessor">The http context accessor</param> /// <param name="execution">The executionSI</param> /// <param name="testdataRepositorySettings">The test data settings</param> /// <param name="workflowSI">The workflowSI</param> public ManualTestingController( ITestdata testdataService, IProfile profileService, IRegister registerService, IAuthorization authorizationService, IOptions <ServiceRepositorySettings> repositorySettings, IGitea giteaWrapper, IExecution execution, IHttpContextAccessor contextAccessor, IOptions <TestdataRepositorySettings> testdataRepositorySettings, IWorkflowSI workflowSI) { _testdata = testdataService; _profile = profileService; _register = registerService; _authorization = authorizationService; _userHelper = new UserHelper(_profile, _register); _settings = repositorySettings.Value; _giteaApi = giteaWrapper; _execution = execution; _httpContextAccessor = contextAccessor; _testdataRepositorySettings = testdataRepositorySettings.Value; _workflowSI = workflowSI; }