Ejemplo n.º 1
0
 /// <summary>
 /// Конструктор <see cref="TaskController"/>.
 /// </summary>
 /// <param name="task_create_service">Сервис создания задачи в КСУ.</param>
 /// <param name="task_form_validation_service">Сервис проверки форм для создания задач КСУ.</param>
 /// <param name="service_settings_service">Сервис, предоставляющий доступ к API Noc Cordis.</param>
 /// <param name="logger">Логгер.</param>
 /// <param name="user_info_service">Сервис получени информации о пользователе.</param>
 public TaskController(TaskCreateService task_create_service,
                       TaskFormValidationService task_form_validation_service,
                       ServiceSettingsService service_settings_service,
                       ILogger <TaskController> logger,
                       IUserInfoService user_info_service)
 {
     _jiraServiceSettings = service_settings_service.GetSettingsByCode(JIRA_SERVICE_CODE);
     _taskCreateService   = task_create_service;
     _logger                    = logger;
     _userInfoService           = user_info_service;
     _taskFormValidationService = task_form_validation_service;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Конструктор <see cref="TaskController" /> .
 /// </summary>
 /// <param name="task_create_service">Сервис создания задачи в КСУ.</param>
 /// <param name="task_create_validation_service">Сервис проверки форм для создания задач КСУ.</param>
 /// <param name="service_settings_service">Сервис, предоставляющий доступ к API Noc Cordis.</param>
 /// <param name="logger">Логгер</param>
 /// <param name="user_info_service">Интерфейс для работы с HttpContext.</param>
 public TestTaskController(TaskCreateService task_create_service, TaskFormValidationService task_create_validation_service, ServiceSettingsService service_settings_service, ILogger <TaskController> logger, IUserInfoService user_info_service)
     : base(task_create_service, task_create_validation_service, service_settings_service, logger, user_info_service)
 {
 }
Ejemplo n.º 3
0
 public void SetUp()
 {
     _taskFormValidationService = new TaskFormValidationService();
 }