/// <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;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RuntimeAPIController"/> class.
 /// </summary>
 /// <param name="repositorySettings">The repository settings</param>
 /// <param name="executionSI">The executionSI</param>
 /// <param name="testdataSIDesigner">The testdataSI for the designer</param>
 /// <param name="logger">The logger</param>
 public RuntimeAPIController(IOptions <ServiceRepositorySettings> repositorySettings, IExecution executionSI, ITestdata testdataSIDesigner, ILogger <RuntimeAPIController> logger)
 {
     _settings   = repositorySettings.Value;
     _execution  = executionSI;
     _testdataSI = testdataSIDesigner;
     _logger     = logger;
 }
 /// <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>
 public ManualTestingController(ITestdata testdataService, IProfile profileService, IRegister registerService,
                                IAuthorization authorizationService, IOptions <ServiceRepositorySettings> repositorySettings, IGitea giteaWrapper)
 {
     _testdata      = testdataService;
     _profile       = profileService;
     _register      = registerService;
     _authorization = authorizationService;
     _userHelper    = new UserHelper(_profile, _register);
     _settings      = repositorySettings.Value;
     _giteaApi      = giteaWrapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ManualTestingController"/> class
 /// </summary>
 /// <param name="httpContextAccessor">the http context accessor service</param>
 /// <param name="profile">the profile service</param>
 /// <param name="register">the register service</param>
 /// <param name="authorization">the authorization service</param>
 /// <param name="testdata">the testdata service</param>
 /// <param name="serviceRepositorySettings">the service repository settings</param>
 /// <param name="generalSettings">the general settings</param>
 /// <param name="giteaApi">the gitea api</param>
 /// <param name="workflow">the workflow</param>
 public ManualTestingController(IHttpContextAccessor httpContextAccessor, IProfile profile, IRegister register, IAuthorization authorization, ITestdata testdata, IOptions <ServiceRepositorySettings> serviceRepositorySettings, IOptions <GeneralSettings> generalSettings, IGitea giteaApi, IWorkflow workflow)
 {
     _httpContextAccessor       = httpContextAccessor;
     _register                  = register;
     _profile                   = profile;
     _userHelper                = new UserHelper(_profile, _register);
     _authorization             = authorization;
     _testdata                  = testdata;
     _serviceRepositorySettings = serviceRepositorySettings.Value;
     _generalSettings           = generalSettings.Value;
     _giteaApi                  = giteaApi;
     _workflow                  = workflow;
 }
Пример #5
0
 /// <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="profileService">The profile service (set in Startup.cs)</param>
 /// <param name="registerService">The registerService (set in Startup.cs)</param>
 /// <param name="erService">The erService (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="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>
 /// <param name="instanceSI">the instance service handler</param>
 /// <param name="eventSI">the instance event service handler</param>
 /// <param name="platformSI">the platform service handler</param>
 /// <param name="dataSI">the data service handler</param>
 /// <param name="application">the application service handler</param>
 /// <param name="prefill">The prefill service handler</param>
 /// <param name="repositorySettings">the repository settings</param>
 /// <param name="generalSettings">the general settings</param>
 public InstanceController(
     IAuthorization authorizationService,
     ILogger <InstanceController> logger,
     IProfile profileService,
     IRegister registerService,
     IER erService,
     IForm formService,
     IRepository repositoryService,
     IExecution serviceExecutionService,
     IArchive archiveService,
     ITestdata testDataService,
     IHttpContextAccessor httpContextAccessor,
     IWorkflow workflowSI,
     IInstance instanceSI,
     IInstanceEvent eventSI,
     IPlatformServices platformSI,
     IData dataSI,
     IApplication application,
     IPrefill prefill,
     IOptions <ServiceRepositorySettings> repositorySettings,
     IOptions <GeneralSettings> generalSettings)
 {
     _authorization       = authorizationService;
     _logger              = logger;
     _profile             = profileService;
     _register            = registerService;
     _er                  = erService;
     _form                = formService;
     _repository          = repositoryService;
     _execution           = serviceExecutionService;
     _userHelper          = new UserHelper(profileService, _register, generalSettings);
     _archive             = archiveService;
     _testdata            = testDataService;
     _httpContextAccessor = httpContextAccessor;
     _workflowSI          = workflowSI;
     _instance            = instanceSI;
     _event               = eventSI;
     _platformSI          = platformSI;
     _data                = dataSI;
     _prefill             = prefill;
     _application         = application;
     _settings            = repositorySettings.Value;
     _generalSettings     = generalSettings.Value;
 }
Пример #6
0
 /// <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="viewRepository">The view repository</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>
 public InstanceController(IAuthorization authorizationService,
                           ILogger <InstanceController> logger,
                           IRegister registerService,
                           IForm formService,
                           IRepository repositoryService,
                           IViewRepository viewRepository,
                           IExecution serviceExecutionService,
                           IProfile profileService,
                           IArchive archiveService,
                           ITestdata testDataService)
 {
     _authorization  = authorizationService;
     _logger         = logger;
     _register       = registerService;
     _form           = formService;
     _repository     = repositoryService;
     _viewRepository = viewRepository;
     _execution      = serviceExecutionService;
     _userHelper     = new UserHelper(profileService, _register);
     _archive        = archiveService;
     _testdata       = testDataService;
 }
 /// <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;
 }