public SurveysController( ISurveyManagementService surveyManagementService, ISurveyAnswerService surveyAnswerService, ISurveyResponseService surveyResponseService) { this.surveyManagementService = surveyManagementService ?? throw new ArgumentNullException(nameof(surveyManagementService)); this.surveyAnswerService = surveyAnswerService ?? throw new ArgumentNullException(nameof(surveyAnswerService)); this.surveyResponseService = surveyResponseService ?? throw new ArgumentNullException(nameof(surveyResponseService)); }
public SurveysController(ISurveyManagementService surveyManagementService, ISurveyAnswerService surveyAnswerService) { if (surveyManagementService == null) { throw new ArgumentNullException(nameof(surveyManagementService)); } if (surveyAnswerService == null) { throw new ArgumentNullException(nameof(surveyAnswerService)); } this.surveyManagementService = surveyManagementService; this.surveyAnswerService = surveyAnswerService; }
public SurveysV2Controller(ISurveyManagementService surveyManagementService, ILogger logger) { _surveyManagementService = surveyManagementService; _logger = logger; }