Ejemplo n.º 1
0
 public UserService(ILogger <UserService> logger,
                    IUserContextProvider userContextProvider,
                    GRA.Abstract.IPasswordValidator passwordValidator,
                    IAuthorizationCodeRepository authorizationCodeRepository,
                    IBadgeRepository badgeRepository,
                    IBookRepository bookRepository,
                    IBranchRepository branchRepository,
                    IDrawingRepository drawingRepository,
                    INotificationRepository notificationRepository,
                    IProgramRepository programRepository,
                    IRoleRepository roleRepository,
                    ISchoolRepository schoolRepository,
                    ISiteRepository siteRepository,
                    IStaticAvatarRepository staticAvatarRepository,
                    ISystemRepository systemRepository,
                    IUserLogRepository userLogRepository,
                    IUserRepository userRepository,
                    SampleDataService configurationService,
                    SchoolService schoolService)
     : base(logger, 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));
     _drawingRepository      = Require.IsNotNull(drawingRepository, nameof(drawingRepository));
     _notificationRepository = Require.IsNotNull(notificationRepository,
                                                 nameof(notificationRepository));
     _programRepository      = Require.IsNotNull(programRepository, nameof(programRepository));
     _roleRepository         = Require.IsNotNull(roleRepository, nameof(roleRepository));
     _schoolRepository       = Require.IsNotNull(schoolRepository, nameof(schoolRepository));
     _siteRepository         = Require.IsNotNull(siteRepository, nameof(siteRepository));
     _staticAvatarRepository = Require.IsNotNull(staticAvatarRepository,
                                                 nameof(staticAvatarRepository));
     _systemRepository     = Require.IsNotNull(systemRepository, nameof(systemRepository));
     _userLogRepository    = Require.IsNotNull(userLogRepository, nameof(userLogRepository));
     _userRepository       = Require.IsNotNull(userRepository, nameof(userRepository));
     _configurationService = Require.IsNotNull(configurationService,
                                               nameof(configurationService));
     _schoolService = Require.IsNotNull(schoolService, nameof(schoolService));
 }
Ejemplo n.º 2
0
 public SampleDataService(ILogger <SampleDataService> logger,
                          IChallengeRepository challengeRepository,
                          IChallengeTaskRepository challengeTaskRepository,
                          IMailRepository mailRepository,
                          IProgramRepository programRepository,
                          ISiteRepository siteRepository,
                          IUserRepository userRepository,
                          ActivityService activityService,
                          SchoolService schoolService) : base(logger)
 {
     _challengeRepository = Require.IsNotNull(challengeRepository,
                                              nameof(challengeRepository));
     _challengeTaskRepository = Require.IsNotNull(challengeTaskRepository,
                                                  nameof(challengeTaskRepository));
     _mailRepository    = Require.IsNotNull(mailRepository, nameof(mailRepository));
     _programRepository = Require.IsNotNull(programRepository, nameof(programRepository));
     _siteRepository    = Require.IsNotNull(siteRepository, nameof(siteRepository));
     _userRepository    = Require.IsNotNull(userRepository, nameof(userRepository));
     _activityService   = Require.IsNotNull(activityService, nameof(activityService));
     _schoolService     = Require.IsNotNull(schoolService, nameof(schoolService));
 }
Ejemplo n.º 3
0
 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));
 }