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 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 ChallengeService(ILogger <ChallengeService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IBadgeRepository badgeRepository, IBranchRepository branchRepository, ICategoryRepository categoryRepository, IChallengeRepository challengeRepository, IChallengeGroupRepository challengeGroupRepository, IChallengeTaskRepository challengeTaskRepository, IEventRepository eventRepository, IPathResolver pathResolver, SiteLookupService siteLookupService, ITriggerRepository triggerRepository) : base(logger, dateTimeProvider, userContextProvider) { _badgeRepository = Require.IsNotNull(badgeRepository, nameof(badgeRepository)); _branchRepository = Require.IsNotNull(branchRepository, nameof(branchRepository)); _categoryRepository = Require.IsNotNull(categoryRepository, nameof(categoryRepository)); _challengeRepository = Require.IsNotNull(challengeRepository, nameof(challengeRepository)); _challengeGroupRepository = Require.IsNotNull(challengeGroupRepository, nameof(challengeGroupRepository)); _challengeTaskRepository = Require.IsNotNull(challengeTaskRepository, nameof(challengeTaskRepository)); _eventRepository = Require.IsNotNull(eventRepository, nameof(eventRepository)); _pathResolver = Require.IsNotNull(pathResolver, nameof(pathResolver)); _siteLookupService = Require.IsNotNull(siteLookupService, nameof(siteLookupService)); _triggerRepository = Require.IsNotNull(triggerRepository, nameof(triggerRepository)); }
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 EventService(ILogger <EventService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, GRA.Abstract.IGraCache cache, IUserContextProvider userContextProvider, IBranchRepository branchRepository, IChallengeRepository challengeRepository, IChallengeGroupRepository challengeGroupRepository, IEventRepository eventRepository, ILocationRepository locationRepository, IProgramRepository programRepository, ISpatialDistanceRepository spatialDistanceRepository, SiteLookupService siteLookupService) : 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)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
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 BadgeService(ILogger <BadgeService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IBadgeRepository badgeRepository, IPathResolver pathResolver, SiteLookupService siteLookupService) : base(logger, dateTimeProvider, userContextProvider) { _badgeRepository = Require.IsNotNull(badgeRepository, nameof(badgeRepository)); _pathResolver = Require.IsNotNull(pathResolver, nameof(pathResolver)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
public LanguageService(ILogger <LanguageService> logger, IDateTimeProvider dateTimeProvider, IDistributedCache cache, IOptions <RequestLocalizationOptions> l10nOptions, ILanguageRepository languageRepository, SiteLookupService siteLookupService) : base(logger, dateTimeProvider) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _l10nOptions = l10nOptions ?? throw new ArgumentNullException(nameof(l10nOptions)); _languageRepository = languageRepository ?? throw new ArgumentNullException(nameof(languageRepository)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
public RoleService(ILogger <RoleService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IRoleRepository roleRepository, ISiteRepository siteRepository, SiteLookupService siteLookupService) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageRoles); _roleRepository = roleRepository ?? throw new ArgumentNullException(nameof(roleRepository)); _siteRepository = siteRepository ?? throw new ArgumentNullException(nameof(siteRepository)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
public ChallengeService(ILogger <ChallengeService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IGraCache cache, IUserContextProvider userContextProvider, IBadgeRepository badgeRepository, IBranchRepository branchRepository, ICategoryRepository categoryRepository, IChallengeGroupRepository challengeGroupRepository, IChallengeRepository challengeRepository, IChallengeTaskRepository challengeTaskRepository, IEventRepository eventRepository, IFeaturedChallengeGroupRepository featuredChallengeGroupRepository, IPathResolver pathResolver, ITriggerRepository triggerRepository, LanguageService languageService, SiteLookupService siteLookupService ) : base(logger, dateTimeProvider, userContextProvider) { _badgeRepository = badgeRepository ?? throw new ArgumentNullException(nameof(badgeRepository)); _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _categoryRepository = categoryRepository ?? throw new ArgumentNullException(nameof(categoryRepository)); _challengeRepository = challengeRepository ?? throw new ArgumentNullException(nameof(challengeRepository)); _challengeGroupRepository = challengeGroupRepository ?? throw new ArgumentNullException(nameof(challengeGroupRepository)); _challengeTaskRepository = challengeTaskRepository ?? throw new ArgumentNullException(nameof(challengeTaskRepository)); _eventRepository = eventRepository ?? throw new ArgumentNullException(nameof(eventRepository)); _featuredChallengeGroupRepository = featuredChallengeGroupRepository ?? throw new ArgumentNullException(nameof(featuredChallengeGroupRepository)); _pathResolver = pathResolver ?? throw new ArgumentNullException(nameof(pathResolver)); _triggerRepository = triggerRepository ?? throw new ArgumentNullException(nameof(triggerRepository)); _languageService = languageService ?? throw new ArgumentNullException(nameof(languageService)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
public BranchImportExportService(ILogger <BranchImportExportService> logger, IDateTimeProvider dateTimeProvider, IPathResolver pathResolver, IUserContextProvider userContextProvider, IJobRepository jobRepository, SiteLookupService siteLookupService, SiteService siteService, SpatialService spatialService) : base(logger, dateTimeProvider, userContextProvider) { _pathResolver = pathResolver ?? throw new ArgumentNullException(nameof(pathResolver)); _jobRepository = jobRepository ?? throw new ArgumentNullException(nameof(jobRepository)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); _siteService = siteService ?? throw new ArgumentNullException(nameof(siteService)); _spatialService = spatialService ?? throw new ArgumentNullException(nameof(spatialService)); }
public SpatialService(ILogger <SpatialService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, IDistributedCache cache, SiteLookupService siteLookupService, IBranchRepository branchRepository, ILocationRepository locationRepository, ISpatialDistanceRepository spatialDistanceRepository) : base(logger, dateTimeProvider, userContextProvider) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); _branchRepository = branchRepository ?? throw new ArgumentNullException(nameof(branchRepository)); _locationRepository = locationRepository ?? throw new ArgumentNullException(nameof(locationRepository)); _spatialDistanceRepository = spatialDistanceRepository ?? throw new ArgumentNullException(nameof(spatialDistanceRepository)); }
public EmailBulkService(ILogger <EmailBulkService> logger, IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, EmailReminderService emailReminderService, EmailService emailService, IDirectEmailHistoryRepository directEmailHistoryRepository, IJobRepository jobRepository, UserService userService, SiteLookupService siteLookupService) : base(logger, dateTimeProvider, userContextProvider) { _directEmailHistoryRepository = directEmailHistoryRepository ?? throw new ArgumentNullException(nameof(directEmailHistoryRepository)); _emailReminderService = emailReminderService ?? throw new ArgumentNullException(nameof(emailReminderService)); _emailService = emailService ?? throw new ArgumentNullException(nameof(emailService)); _jobRepository = jobRepository ?? throw new ArgumentNullException(nameof(jobRepository)); _userService = userService ?? throw new ArgumentNullException(nameof(userService)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); }
public UserService(ILogger <UserService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, IUserContextProvider userContextProvider, GRA.Abstract.IPasswordValidator passwordValidator, IAuthorizationCodeRepository authorizationCodeRepository, IBadgeRepository badgeRepository, IBookRepository bookRepository, IBranchRepository branchRepository, IGroupInfoRepository groupInfoRepository, IGroupTypeRepository groupTypeRepository, IMailRepository mailRepository, INotificationRepository notificationRepository, IPrizeWinnerRepository prizeWinnerRepository, IProgramRepository programRepository, IRequiredQuestionnaireRepository requireQuestionnaireRepository, IRoleRepository roleRepository, ISchoolRepository schoolRepository, ISiteRepository siteRepository, ISystemRepository systemRepository, IUserLogRepository userLogRepository, IUserRepository userRepository, IVendorCodeRepository vendorCodeRepository, ActivityService activityService, SampleDataService configurationService, SchoolService schoolService, SiteLookupService siteLookupService, VendorCodeService vendorCodeService) : base(logger, dateTimeProvider, userContextProvider) { _passwordValidator = Require.IsNotNull(passwordValidator, nameof(passwordValidator)); _authorizationCodeRepository = Require.IsNotNull(authorizationCodeRepository, nameof(authorizationCodeRepository)); _badgeRepository = Require.IsNotNull(badgeRepository, nameof(badgeRepository)); _bookRepository = Require.IsNotNull(bookRepository, nameof(bookRepository)); _branchRepository = Require.IsNotNull(branchRepository, nameof(branchRepository)); _groupInfoRepository = groupInfoRepository ?? throw new ArgumentNullException(nameof(groupInfoRepository)); _groupTypeRepository = groupTypeRepository ?? throw new ArgumentNullException(nameof(groupTypeRepository)); _mailRepository = Require.IsNotNull(mailRepository, nameof(mailRepository)); _notificationRepository = Require.IsNotNull(notificationRepository, nameof(notificationRepository)); _prizeWinnerRepository = Require.IsNotNull(prizeWinnerRepository, nameof(prizeWinnerRepository)); _programRepository = Require.IsNotNull(programRepository, nameof(programRepository)); _requireQuestionnaireRepository = Require.IsNotNull(requireQuestionnaireRepository, nameof(requireQuestionnaireRepository)); _roleRepository = Require.IsNotNull(roleRepository, nameof(roleRepository)); _schoolRepository = Require.IsNotNull(schoolRepository, nameof(schoolRepository)); _siteRepository = Require.IsNotNull(siteRepository, nameof(siteRepository)); _systemRepository = Require.IsNotNull(systemRepository, nameof(systemRepository)); _userLogRepository = Require.IsNotNull(userLogRepository, nameof(userLogRepository)); _userRepository = Require.IsNotNull(userRepository, nameof(userRepository)); _vendorCodeRepository = Require.IsNotNull(vendorCodeRepository, nameof(vendorCodeRepository)); _activityService = Require.IsNotNull(activityService, nameof(activityService)); _configurationService = Require.IsNotNull(configurationService, nameof(configurationService)); _schoolService = Require.IsNotNull(schoolService, nameof(schoolService)); _siteLookupService = siteLookupService ?? throw new ArgumentNullException(nameof(siteLookupService)); _vendorCodeService = vendorCodeService ?? throw new ArgumentNullException(nameof(VendorCodeService)); }