public EmailService(ILogger <EmailService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, GRA.Abstract.IGraCache cache, IConfiguration config, IDirectEmailHistoryRepository directEmailHistoryRepository, IDirectEmailTemplateRepository directEmailTemplateRepository, IEmailBaseRepository emailBaseRepository, IUserRepository userRepository, LanguageService languageService, SiteLookupService siteLookupService) : base(logger, dateTimeProvider) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _config = config ?? throw new ArgumentNullException(nameof(config)); _directEmailHistoryRepository = directEmailHistoryRepository ?? throw new ArgumentNullException(nameof(directEmailHistoryRepository)); _directEmailTemplateRepository = directEmailTemplateRepository ?? throw new ArgumentNullException(nameof(directEmailTemplateRepository)); _emailBaseRepository = emailBaseRepository ?? throw new ArgumentNullException(nameof(emailBaseRepository)); _languageService = languageService ?? throw new ArgumentNullException(nameof(languageService)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
public EmailManagementService(ILogger <EmailManagementService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, GRA.Abstract.IGraCache cache, IDirectEmailTemplateRepository directEmailTemplateRepository, IEmailBaseRepository emailBaseRepository, IEmailReminderRepository emailReminderRepository, IEmailSubscriptionAuditLogRepository emailSubscriptionAuditLogRepository, IStringLocalizer <Resources.Shared> sharedLocalizer, IUserContextProvider userContextProvider, IUserRepository userRepository) : base(logger, dateTimeProvider, userContextProvider) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _directEmailTemplateRepository = directEmailTemplateRepository ?? throw new ArgumentNullException(nameof(directEmailTemplateRepository)); _emailBaseRepository = emailBaseRepository ?? throw new ArgumentNullException(nameof(emailBaseRepository)); _emailReminderRepository = emailReminderRepository ?? throw new ArgumentNullException(nameof(emailReminderRepository)); _emailSubscriptionAuditLogRepository = emailSubscriptionAuditLogRepository ?? throw new ArgumentNullException(nameof(emailSubscriptionAuditLogRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _sharedLocalizer = sharedLocalizer ?? throw new ArgumentNullException(nameof(sharedLocalizer)); }
public DrawingService(ILogger <DrawingService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IBranchRepository branchRepository, IDrawingRepository drawingRepository, IDrawingCriterionRepository drawingCriterionRepository, IMailRepository mailRepository, IPrizeWinnerRepository prizeWinnerRepository, IProgramRepository programRepository, ISystemRepository systemRepository) : base(logger, dateTimeProvider, userContextProvider) { _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _drawingRepository = drawingRepository ?? throw new ArgumentNullException(nameof(drawingRepository)); _drawingCriterionRepository = drawingCriterionRepository ?? throw new ArgumentNullException( nameof(drawingCriterionRepository)); _mailRepository = mailRepository ?? throw new ArgumentNullException(nameof(mailRepository)); _prizeWinnerRepository = prizeWinnerRepository ?? throw new ArgumentNullException(nameof(prizeWinnerRepository)); _programRepository = programRepository ?? throw new ArgumentNullException(nameof(programRepository)); _systemRepository = systemRepository ?? throw new ArgumentNullException(nameof(systemRepository)); }
public PrizeWinnerService(ILogger <PrizeWinnerService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IBranchRepository branchRepository, IDrawingCriterionRepository drawingCriterionRepository, IDrawingRepository drawingRepository, IPrizeWinnerRepository prizeWinnerRepository, ISystemRepository systemRepository, ITriggerRepository triggerRepository, IUserRepository userRepository, IVendorCodeRepository vendorCodeRepository, IVendorCodeTypeRepository vendorCodeTypeRepository) : base(logger, dateTimeProvider, userContextProvider) { _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _drawingCriterionRepository = drawingCriterionRepository ?? throw new ArgumentNullException(nameof(drawingCriterionRepository)); _drawingRepository = drawingRepository ?? throw new ArgumentNullException(nameof(drawingRepository)); _prizeWinnerRepository = prizeWinnerRepository ?? throw new ArgumentNullException(nameof(prizeWinnerRepository)); _systemRepository = systemRepository ?? throw new ArgumentNullException(nameof(systemRepository)); _triggerRepository = triggerRepository ?? throw new ArgumentNullException(nameof(triggerRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _vendorCodeRepository = vendorCodeRepository ?? throw new ArgumentNullException(nameof(vendorCodeRepository)); _vendorCodeTypeRepository = vendorCodeTypeRepository ?? throw new ArgumentNullException(nameof(vendorCodeTypeRepository)); SetManagementPermission(Permission.ViewUserPrizes); }
public PageService(ILogger <PageService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IPageRepository pageRepository) : base(logger, dateTimeProvider, userContextProvider) { _pageRepository = Require.IsNotNull(pageRepository, nameof(pageRepository)); }
public EmailReminderService(ILogger <EmailReminderService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IEmailReminderRepository emailReminderRepository) : base(logger, dateTimeProvider) { _emailReminderRepository = Require.IsNotNull(emailReminderRepository, nameof(emailReminderRepository)); }
public EventService(ILogger <EventService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IDistributedCache cache, IUserContextProvider userContextProvider, IBranchRepository branchRepository, IChallengeRepository challengeRepository, IChallengeGroupRepository challengeGroupRepository, IEventRepository eventRepository, ILocationRepository locationRepository, IProgramRepository programRepository, ISpatialDistanceRepository spatialDistanceRepository) : base(logger, dateTimeProvider, userContextProvider) { _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _challengeRepository = challengeRepository ?? throw new ArgumentNullException(nameof(challengeRepository)); _challengeGroupRepository = challengeGroupRepository ?? throw new ArgumentNullException(nameof(challengeGroupRepository)); _eventRepository = eventRepository ?? throw new ArgumentNullException(nameof(eventRepository)); _locationRepository = locationRepository ?? throw new ArgumentNullException(nameof(locationRepository)); _programRepository = programRepository ?? throw new ArgumentNullException(nameof(programRepository)); _spatialDistanceRepository = spatialDistanceRepository ?? throw new ArgumentNullException(nameof(spatialDistanceRepository)); }
public BaseUserService(ILogger <Service> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider) : base(logger, dateTimeProvider) { _userContextProvider = Require.IsNotNull(userContextProvider, nameof(userContextProvider)); }
public SampleDataService(ILogger <SampleDataService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IChallengeRepository challengeRepository, IChallengeTaskRepository challengeTaskRepository, IMailRepository mailRepository, IProgramRepository programRepository, ISiteRepository siteRepository, IUserRepository userRepository, ActivityService activityService, SchoolService schoolService) : base(logger, dateTimeProvider, userContextProvider) { _challengeRepository = challengeRepository ?? throw new ArgumentNullException(nameof(challengeRepository)); _challengeTaskRepository = challengeTaskRepository ?? throw new ArgumentNullException(nameof(challengeTaskRepository)); _mailRepository = mailRepository ?? throw new ArgumentNullException(nameof(mailRepository)); _programRepository = programRepository ?? throw new ArgumentNullException(nameof(programRepository)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _activityService = activityService ?? throw new ArgumentNullException(nameof(activityService)); _schoolService = schoolService ?? throw new ArgumentNullException(nameof(schoolService)); }
public SetupMultipleProgramService(ILogger <SetupMultipleProgramService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IAuthorizationCodeRepository authorizationCodeRepository, IBranchRepository branchRepository, IChallengeTaskRepository challengeTaskRepository, IProgramRepository programRepository, IRoleRepository roleRepository, ISystemRepository systemRepository, IPointTranslationRepository pointTranslationRepository, IUserRepository userRepository) : base(logger, dateTimeProvider) { _authorizationCodeRepository = authorizationCodeRepository ?? throw new ArgumentNullException(nameof(authorizationCodeRepository)); _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _challengeTaskRepository = challengeTaskRepository ?? throw new ArgumentNullException(nameof(challengeTaskRepository)); _programRepository = programRepository ?? throw new ArgumentNullException(nameof(programRepository)); _roleRepository = roleRepository ?? throw new ArgumentNullException(nameof(roleRepository)); _systemRepository = systemRepository ?? throw new ArgumentNullException(nameof(systemRepository)); _pointTranslationRepository = pointTranslationRepository ?? throw new ArgumentNullException(nameof(pointTranslationRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
public AuthenticationService(ILogger <AuthenticationService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, GRA.Abstract.ITokenGenerator tokenGenerator, GRA.Abstract.IPasswordValidator passwordValidator, EmailService emailService, IRecoveryTokenRepository recoveryTokenRepository, IRoleRepository roleRepository, IUserContextProvider userContextProvider, IUserRepository userRepository, LanguageService languageService, SiteLookupService siteLookupService) : base(logger, dateTimeProvider, userContextProvider) { _tokenGenerator = tokenGenerator ?? throw new ArgumentNullException(nameof(tokenGenerator)); _passwordValidator = passwordValidator ?? throw new ArgumentNullException(nameof(passwordValidator)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _recoveryTokenRepository = recoveryTokenRepository ?? throw new ArgumentNullException(nameof(recoveryTokenRepository)); _roleRepository = roleRepository ?? throw new ArgumentNullException(nameof(roleRepository)); _emailService = emailService ?? throw new ArgumentNullException(nameof(emailService)); _languageService = languageService ?? throw new ArgumentNullException(nameof(languageService)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
public ReportService(ILogger <ReportService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IServiceProvider serviceProvider, IDistributedCache cache, IBranchRepository branchRepository, IReportCriterionRepository reportCriterionRepository, IReportRequestRepository reportRequestRepository, IUserRepository userRepository, IUserLogRepository userLogRepository, ISystemRepository systemRepository) : base(logger, dateTimeProvider, userContextProvider) { _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _reportCriterionRepository = reportCriterionRepository ?? throw new ArgumentNullException(nameof(reportCriterionRepository)); _reportRequestRepository = reportRequestRepository ?? throw new ArgumentNullException(nameof(reportRequestRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _userLogRepository = userLogRepository ?? throw new ArgumentNullException(nameof(userLogRepository)); _systemRepository = systemRepository ?? throw new ArgumentNullException(nameof(systemRepository)); }
public SiteService(ILogger <SiteService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IBranchRepository branchRepository, IProgramRepository programRepository, ISiteRepository siteRepository, ISiteSettingRepository siteSettingRepository, ISpatialDistanceRepository spatialDistanceRepository, ISystemRepository systemRepository, SiteLookupService siteLookupService, IUserRepository userRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageSites); _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _programRepository = programRepository ?? throw new ArgumentNullException(nameof(programRepository)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); _siteSettingRepository = siteSettingRepository ?? throw new ArgumentNullException(nameof(siteSettingRepository)); _spatialDistanceRepository = spatialDistanceRepository ?? throw new ArgumentNullException(nameof(spatialDistanceRepository)); _systemRepository = systemRepository ?? throw new ArgumentNullException(nameof(systemRepository)); _siteLookupService = siteLookupService ?? throw new ArgumentException(nameof(siteLookupService)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
public TriggerService(ILogger <TriggerService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IAvatarBundleRepository avatarBundleRepository, IBranchRepository branchRepository, IEventRepository eventRepository, IProgramRepository programRepository, ISystemRepository systemRepository, ITriggerRepository triggerRepository, SiteLookupService siteLookupService) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageTriggers); _avatarBundleRepository = avatarBundleRepository ?? throw new ArgumentNullException( nameof(avatarBundleRepository)); _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _eventRepository = eventRepository ?? throw new ArgumentNullException(nameof(eventRepository)); _programRepository = programRepository ?? throw new ArgumentNullException(nameof(programRepository)); _systemRepository = systemRepository ?? throw new ArgumentNullException(nameof(systemRepository)); _triggerRepository = triggerRepository ?? throw new ArgumentNullException(nameof(triggerRepository)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
public QuestionnaireService(ILogger <QuestionnaireService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IAnswerRepository answerRepository, IBadgeRepository badgeRepository, INotificationRepository notificationRepository, IQuestionRepository questionRepository, IQuestionnaireRepository questionnaireRepository, IRequiredQuestionnaireRepository requiredQuestionnaireRepository, IUserLogRepository userLogRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageQuestionnaires); _answerRepository = answerRepository ?? throw new ArgumentNullException(nameof(answerRepository)); _badgeRepository = badgeRepository ?? throw new ArgumentNullException(nameof(badgeRepository)); _notificationRepository = notificationRepository ?? throw new ArgumentNullException(nameof(notificationRepository)); _questionRepository = questionRepository ?? throw new ArgumentNullException(nameof(questionRepository)); _questionnaireRepository = questionnaireRepository ?? throw new ArgumentNullException(nameof(questionnaireRepository)); _requiredQuestionnaireRepository = requiredQuestionnaireRepository ?? throw new ArgumentNullException(nameof(requiredQuestionnaireRepository)); _userLogRepository = userLogRepository ?? throw new ArgumentNullException(nameof(userLogRepository)); }
public UserImportService(ILogger <UserImportService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, SiteService siteService) : base(logger, dateTimeProvider, userContextProvider) { _siteService = siteService ?? throw new ArgumentNullException(nameof(siteService)); }
public SchoolImportExportService(ILogger <SchoolImportExportService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, SchoolService schoolService) : base(logger, dateTimeProvider, userContextProvider) { _schoolService = schoolService ?? throw new ArgumentNullException(nameof(schoolService)); }
protected BaseUserService(ILogger <Service> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider) : base(logger, dateTimeProvider) { _userContextProvider = userContextProvider ?? throw new ArgumentNullException(nameof(userContextProvider)); }
public SystemInformationService(ILogger <SystemInformationService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, ISystemInformationRepository systemInformationRepository) : base(logger, dateTimeProvider, userContextProvider) { _systemInformationRepository = Require.IsNotNull(systemInformationRepository, nameof(systemInformationRepository)); }
public SystemInformationService(ILogger <SystemInformationService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, ISystemInformationRepository systemInformationRepository) : base(logger, dateTimeProvider, userContextProvider) { _systemInformationRepository = systemInformationRepository ?? throw new ArgumentNullException(nameof(systemInformationRepository)); }
public PointTranslationService(ILogger <PointTranslationService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IPointTranslationRepository pointTranslationRepository) : base(logger, dateTimeProvider, userContextProvider) { _pointTranslationRepository = pointTranslationRepository ?? throw new ArgumentNullException(nameof(pointTranslationRepository)); }
public EmailReminderService(ILogger <EmailReminderService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IEmailReminderRepository emailReminderRepository, LanguageService languageService) : base(logger, dateTimeProvider) { _emailReminderRepository = emailReminderRepository ?? throw new ArgumentNullException(nameof(emailReminderRepository)); _languageService = languageService ?? throw new ArgumentNullException(nameof(languageService)); }
public CategoryService(ILogger <CategoryService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, ICategoryRepository categoryRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageCategories); _categoryRepository = categoryRepository ?? throw new ArgumentNullException(nameof(categoryRepository)); }
public CategoryService(ILogger <CategoryService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, ICategoryRepository categoryRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageCategories); _categoryRepository = Require.IsNotNull(categoryRepository, nameof(categoryRepository)); }
public AuthorizationCodeService(ILogger <AuthorizationCodeService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IAuthorizationCodeRepository authorizationCodeRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Model.Permission.ManageRoles); _authorizationCodeRepository = authorizationCodeRepository ?? throw new ArgumentNullException(nameof(authorizationCodeRepository)); }
public SchoolService(ILogger <SchoolService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, ISchoolDistrictRepository schoolDistrictRepository, ISchoolRepository schoolRepository) : base(logger, dateTimeProvider, userContextProvider) { _schoolDistrictRepository = schoolDistrictRepository ?? throw new ArgumentNullException(nameof(schoolDistrictRepository)); _schoolRepository = schoolRepository ?? throw new ArgumentNullException(nameof(schoolRepository)); }
public SchoolService(ILogger <SchoolService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, ISchoolDistrictRepository schoolDistrictRepository, ISchoolRepository schoolRepository, IUserRepository userRepository) : base(logger, dateTimeProvider, userContextProvider) { _schoolDistrictRepository = Require.IsNotNull(schoolDistrictRepository, nameof(schoolDistrictRepository)); _schoolRepository = Require.IsNotNull(schoolRepository, nameof(schoolRepository)); _userRepository = Require.IsNotNull(userRepository, nameof(userRepository)); }
public EmailService(ILogger <EmailService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IConfiguration config, IProgramRepository programRepository, ISiteRepository siteRepository, IUserRepository userRepository) : base(logger, dateTimeProvider) { _config = Require.IsNotNull(config, nameof(config)); _programRepository = Require.IsNotNull(programRepository, nameof(programRepository)); _siteRepository = Require.IsNotNull(siteRepository, nameof(siteRepository)); _userRepository = Require.IsNotNull(userRepository, nameof(userRepository)); }
public RoleService(ILogger<RoleService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IRoleRepository roleRepository, ISiteRepository siteRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageRoles); _roleRepository = roleRepository ?? throw new ArgumentNullException(nameof(roleRepository)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); }
public DailyLiteracyTipService(ILogger <DailyLiteracyTipService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IDailyLiteracyTipImageRepository dailyLiteracyTipImageRepository, IDailyLiteracyTipRepository dailyLiteracyTipRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageDailyLiteracyTips); _dailyLiteracyTipImageRepository = Require.IsNotNull(dailyLiteracyTipImageRepository, nameof(dailyLiteracyTipImageRepository)); _dailyLiteracyTipRepository = Require.IsNotNull(dailyLiteracyTipRepository, nameof(dailyLiteracyTipRepository)); }