Ejemplo n.º 1
0
        public HomeController(ILogger <HomeController> logger,
                              AuthenticationService authenticationService,
                              MailService mailService,
                              NewsService newsService,
                              ReportService reportService,
                              UserService userService,
                              SiteService siteService,
                              ServiceFacade.Controller context,
                              ICodeSanitizer codeSanitizer)
            : base(context)
        {
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
            _authenticationService = authenticationService
                                     ?? throw new ArgumentNullException(nameof(authenticationService));
            _mailService   = mailService ?? throw new ArgumentNullException(nameof(mailService));
            _newsService   = newsService ?? throw new ArgumentNullException(nameof(newsService));
            _reportService = reportService
                             ?? throw new ArgumentNullException(nameof(reportService));
            _userService   = userService ?? throw new ArgumentNullException(nameof(userService));
            _siteService   = siteService ?? throw new ArgumentNullException(nameof(siteService));
            _codeSanitizer = codeSanitizer
                             ?? throw new ArgumentNullException(nameof(codeSanitizer));

            PageTitle = "Mission Control";
        }
Ejemplo n.º 2
0
 public JoinController(ILogger <JoinController> logger,
                       ServiceFacade.Controller context,
                       AuthenticationService authenticationService,
                       MailService mailService,
                       PointTranslationService pointTranslationService,
                       SchoolService schoolService,
                       SiteService siteService,
                       QuestionnaireService questionnaireService,
                       UserService userService,
                       ICodeSanitizer codeSanitizer)
     : base(context)
 {
     _logger = Require.IsNotNull(logger, nameof(logger));
     _mapper = context.Mapper;
     _authenticationService = Require.IsNotNull(authenticationService,
                                                nameof(authenticationService));
     _mailService             = Require.IsNotNull(mailService, nameof(mailService));
     _pointTranslationService = Require.IsNotNull(pointTranslationService,
                                                  nameof(pointTranslationService));
     _schoolService        = Require.IsNotNull(schoolService, nameof(schoolService));
     _siteService          = Require.IsNotNull(siteService, nameof(siteService));
     _questionnaireService = Require.IsNotNull(questionnaireService,
                                               nameof(questionnaireService));
     _userService   = Require.IsNotNull(userService, nameof(userService));
     _codeSanitizer = Require.IsNotNull(codeSanitizer, nameof(codeSanitizer));
     PageTitle      = "Join";
 }
 public JoinController(ILogger <JoinController> logger,
                       ServiceFacade.Controller context,
                       AuthenticationService authenticationService,
                       AuthorizationCodeService authorizationCodeService,
                       MailService mailService,
                       PointTranslationService pointTranslationService,
                       SchoolService schoolService,
                       SiteService siteService,
                       QuestionnaireService questionnaireService,
                       UserService userService,
                       ICodeSanitizer codeSanitizer)
     : base(context)
 {
     _logger = Require.IsNotNull(logger, nameof(logger));
     _mapper = context.Mapper;
     _authenticationService = Require.IsNotNull(authenticationService,
                                                nameof(authenticationService));
     _authorizationCodeService = authorizationCodeService
                                 ?? throw new ArgumentNullException(nameof(authorizationCodeService));
     _mailService             = Require.IsNotNull(mailService, nameof(mailService));
     _pointTranslationService = Require.IsNotNull(pointTranslationService,
                                                  nameof(pointTranslationService));
     _schoolService        = Require.IsNotNull(schoolService, nameof(schoolService));
     _siteService          = Require.IsNotNull(siteService, nameof(siteService));
     _questionnaireService = Require.IsNotNull(questionnaireService,
                                               nameof(questionnaireService));
     _userService   = Require.IsNotNull(userService, nameof(userService));
     _codeSanitizer = Require.IsNotNull(codeSanitizer, nameof(codeSanitizer));
     PageTitle      = _sharedLocalizer[Annotations.Title.Join];
 }
Ejemplo n.º 4
0
 public HomeController(ILogger <HomeController> logger,
                       ServiceFacade.Controller context,
                       AuthenticationService authenticationService,
                       PerformerSchedulingService performerSchedulingService,
                       UserService userService,
                       ICodeSanitizer codeSanitizer) : base(context)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _authenticationService = authenticationService
                              ?? throw new ArgumentNullException(nameof(authenticationService));
     _performerSchedulingService = performerSchedulingService
                                   ?? throw new ArgumentNullException(nameof(performerSchedulingService));
     _userService   = userService ?? throw new ArgumentNullException(nameof(userService));
     _codeSanitizer = codeSanitizer
                      ?? throw new ArgumentNullException(nameof(codeSanitizer));
     PageTitle = "Performer Registration";
 }
Ejemplo n.º 5
0
 public ActivityService(ILogger <UserService> logger,
                        IUserContextProvider userContext,
                        IBadgeRepository badgeRepository,
                        IBookRepository bookRepository,
                        IChallengeRepository challengeRepository,
                        IDrawingRepository drawingRepository,
                        INotificationRepository notificationRepository,
                        IPointTranslationRepository pointTranslationRepository,
                        IProgramRepository programRepository,
                        IRequiredQuestionnaireRepository requiredQuestionnaireRepository,
                        ITriggerRepository triggerRepository,
                        IUserRepository userRepository,
                        IUserLogRepository userLogRepository,
                        IVendorCodeRepository vendorCodeRepository,
                        IVendorCodeTypeRepository vendorCodeTypeRepository,
                        ICodeSanitizer codeSanitizer,
                        MailService mailService,
                        PrizeWinnerService prizeWinnerService) : base(logger, userContext)
 {
     _badgeRepository     = Require.IsNotNull(badgeRepository, nameof(badgeRepository));
     _bookRepository      = Require.IsNotNull(bookRepository, nameof(bookRepository));
     _challengeRepository = Require.IsNotNull(challengeRepository,
                                              nameof(challengeRepository));
     _drawingRepository      = Require.IsNotNull(drawingRepository, nameof(drawingRepository));
     _notificationRepository = Require.IsNotNull(notificationRepository,
                                                 nameof(notificationRepository));
     _pointTranslationRepository = Require.IsNotNull(pointTranslationRepository,
                                                     nameof(pointTranslationRepository));
     _programRepository = Require.IsNotNull(programRepository, nameof(programRepository));
     _requiredQuestionnaireRepository = Require.IsNotNull(requiredQuestionnaireRepository,
                                                          nameof(requiredQuestionnaireRepository));
     _triggerRepository = Require.IsNotNull(triggerRepository, nameof(triggerRepository));
     _userRepository    = Require.IsNotNull(userRepository, nameof(userRepository));
     _userLogRepository = Require.IsNotNull(userLogRepository,
                                            nameof(userLogRepository));
     _vendorCodeRepository = Require.IsNotNull(vendorCodeRepository,
                                               nameof(vendorCodeRepository));
     _vendorCodeTypeRepository = Require.IsNotNull(vendorCodeTypeRepository,
                                                   nameof(vendorCodeTypeRepository));
     _codeSanitizer      = Require.IsNotNull(codeSanitizer, nameof(codeSanitizer));
     _mailService        = Require.IsNotNull(mailService, nameof(mailService));
     _prizeWinnerService = Require.IsNotNull(prizeWinnerService,
                                             nameof(prizeWinnerService));
 }
Ejemplo n.º 6
0
        public HomeController(ILogger <HomeController> logger,
                              AuthenticationService authenticationService,
                              ReportService reportService,
                              SampleDataService sampleDataService,
                              UserService userService,
                              SiteService siteService,
                              ServiceFacade.Controller context,
                              ICodeSanitizer codeSanitizer)
            : base(context)
        {
            _logger = Require.IsNotNull(logger, nameof(logger));
            _authenticationService = Require.IsNotNull(authenticationService,
                                                       nameof(authenticationService));
            _reportService     = Require.IsNotNull(reportService, nameof(reportService));
            _sampleDataService = Require.IsNotNull(sampleDataService,
                                                   nameof(sampleDataService));
            _userService   = Require.IsNotNull(userService, nameof(userService));
            _siteService   = Require.IsNotNull(siteService, nameof(siteService));
            _codeSanitizer = Require.IsNotNull(codeSanitizer, nameof(codeSanitizer));

            PageTitle = "Mission Control";
        }