Beispiel #1
0
        public AccountController(
            IUsersService usersService,
            ITokenStoreService tokenStoreService,
            ILoginService loginService,
            IAuthLevelService authLevelService,
            IPolicyService policyService,
            IRolesService rolesService,
            IUnitOfWork uow,
            IMapper mapper)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));

            _loginService = loginService;
            _loginService.CheckArgumentIsNull(nameof(_loginService));

            _authLevelService = authLevelService;
            _authLevelService.CheckArgumentIsNull(nameof(_authLevelService));

            _policyService = policyService;
            _policyService.CheckArgumentIsNull(nameof(_policyService));

            _roleService = rolesService;
            _roleService.CheckArgumentIsNull(nameof(_roleService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _mapper = mapper;
            _mapper.CheckArgumentIsNull(nameof(_mapper));
        }
Beispiel #2
0
        public UserManagerController(
            IMapper mapper,
            IUnitOfWork uow,
            IUsersService usersService,
            IClaimService claimService,
            IRolesService rolesService,
            IAuthLevelService authLevelService,
            IPasswordValidatorService passwordValidator)
        {
            _mapper = mapper;
            _mapper.CheckArgumentIsNull(nameof(_mapper));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _userService = usersService;
            _userService.CheckArgumentIsNull(nameof(_userService));

            _claimService = claimService;
            _claimService.CheckArgumentIsNull(nameof(_claimService));

            _roleService = rolesService;
            _roleService.CheckArgumentIsNull(nameof(_roleService));

            _authLevelService = authLevelService;
            _authLevelService.CheckArgumentIsNull(nameof(_authLevelService));

            _passwordValidator = passwordValidator;
            _passwordValidator.CheckArgumentIsNull(nameof(_passwordValidator));
        }
Beispiel #3
0
        public AuthLevelsController(
            IAuthLevelService authLevelService,
            IClaimService claimService,
            IMapper mapper,
            IUnitOfWork uow)
        {
            _authLevelService = authLevelService;
            _authLevelService.CheckArgumentIsNull(nameof(_authLevelService));

            _claimService = claimService;
            _claimService.CheckArgumentIsNull(nameof(_claimService));

            _mapper = mapper;
            _mapper.CheckArgumentIsNull(nameof(_mapper));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));
        }