public GetUserSurveysQueryHandler(IDatabaseConnection databaseConnection, IUserService userService, ISurveyContext surveyContext) { _userService = userService ?? throw new ArgumentNullException(nameof(userService)); _surveyContext = surveyContext ?? throw new ArgumentNullException(nameof(surveyContext)); _databaseConnection = databaseConnection ?? throw new ArgumentNullException(nameof(databaseConnection)); }
public IsUserRegisteredQueryHandler(ISurveyContext context) { _surveyContext = context ?? throw new ArgumentNullException(nameof(context)); }
public CreateSurveyCommandHandler(ISurveyContext surveyContext, IMapper mapper, IUserService userService) { _surveyContext = surveyContext ?? throw new ArgumentNullException(nameof(surveyContext)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _userService = userService ?? throw new ArgumentNullException(nameof(userService)); }
public GetSurveyDetailWithEntityFrameworkQueryHandler(ISurveyContext surveyContext, IMapper mapper, ICache <SurveyModel> cache) { _surveyContext = surveyContext ?? throw new ArgumentNullException(nameof(surveyContext)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); }
public RegisterUserCommandHandler(IUserService userService, ISurveyContext surveyContext, IMapper mapper) { _userService = userService ?? throw new ArgumentNullException(nameof(userService)); _surveyContext = surveyContext ?? throw new ArgumentNullException(nameof(surveyContext)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public GetUserQueryHandler(ISurveyContext context, IMapper mapper) { _surveyContext = context ?? throw new ArgumentNullException(nameof(context)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public SurveyRepository(ISurveyContext surveyContext) { _surveyContext = surveyContext; }