Beispiel #1
0
 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));
 }
Beispiel #6
0
 public GetUserQueryHandler(ISurveyContext context, IMapper mapper)
 {
     _surveyContext = context ?? throw new ArgumentNullException(nameof(context));
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #7
0
 public SurveyRepository(ISurveyContext surveyContext)
 {
     _surveyContext = surveyContext;
 }