Esempio n. 1
0
 public AdminController(UserManager <ApplicationUser> userManager, IIdentityService identityservice, IIdentityRoleService identityroleservice, RoleManager <IdentityRole> roleManager)
 {
     _identityservice     = identityservice;
     _identityroleservice = identityroleservice;
     _roleManager         = roleManager;
     _userManager         = userManager;
 }
Esempio n. 2
0
        public void SetUp()
        {
            _identityUserServiceMock = MockRepository.GenerateMock <IIdentityUserService>();
            _identityRoleServiceMock = MockRepository.GenerateMock <IIdentityRoleService>();

            _userStore = new UserStore <IdentityUser>();
        }
Esempio n. 3
0
        //private Task<IdentityResult> _createUserAsync;

        public IdentityController(IIdentityUserService identityUserService,
                                  IIdentityRoleService identityRoleService,
                                  IIdentityUserRoleService identityUserRoleService)
        {
            _identityUserService     = identityUserService;
            _identityRoleService     = identityRoleService;
            _identityUserRoleService = identityUserRoleService;
        }
 public IdentityUserService(
     UserManager <AppUser> userManager,
     IIdentityRoleService identityRoleService,
     IMapper mapper)
 {
     _userManager         = userManager;
     _identityRoleService = identityRoleService;
     _mapper = mapper;
 }
Esempio n. 5
0
 public UserController(IUserService userService, IAppEnvironmentService appEnvironmentService, ILogger logger,
                       IIdentityRoleService identityRoleService, IGroupService groupService, IUserGroupsService userGroupsService)
     : base(logger, appEnvironmentService, userService)
 {
     this.userService           = userService;
     this.appEnvironmentService = appEnvironmentService;
     this._identityRoleService  = identityRoleService;
     _groupService      = groupService;
     _userGroupsService = userGroupsService;
 }
Esempio n. 6
0
 public UserController(
     IUserService userService,
     IManCoService manCoService,
     IIdentityRoleService identityRoleService,
     ILogger logger)
     : base(logger)
 {
     this._userService         = userService;
     this._manCoService        = manCoService;
     this._identityRoleService = identityRoleService;
 }
Esempio n. 7
0
 public IdentityAccountService(
     UserManager <AppUser> userManager,
     IIdentityUserService identityUserService,
     IIdentityRoleService identityRoleService,
     IConfiguration configuration,
     IEncryptionService encryptionService)
 {
     _userManager         = userManager;
     _identityUserService = identityUserService;
     _identityRoleService = identityRoleService;
     _configuration       = configuration;
     _encryptionService   = encryptionService;
 }
 public IdentityRoleClient(EndpointConfiguration endpoint)
 {
     channel = new ChannelFactory <IIdentityRoleService>(GetBindingForEndpoint(EndpointConfigurationType.NetTcpBinding),
                                                         GetEndpointAddress(endpoint)).CreateChannel();
 }
Esempio n. 9
0
 public AssignUserToRoleCommandHandler(IIdentityRoleService identityRoleService, IIdentityUserService identityUserService)
 {
     _identityRoleService = identityRoleService;
     _identityUserService = identityUserService;
 }
Esempio n. 10
0
 public UsersController(IUserService userService, IIdentityRoleService roleService)
 {
     this.userService = userService;
     this.roleService = roleService;
 }
 public DeleteRoleCommandHandler(IIdentityRoleService identityRoleService)
 {
     _identityRoleService = identityRoleService;
 }
 public RemoveUserFromRoleCommandHandler(IIdentityRoleService identityRoleService, IIdentityUserService identityUserService)
 {
     _identityRoleService = identityRoleService;
     _identityUserService = identityUserService;
 }
Esempio n. 13
0
 public UserService(IRepository <User> repositoryUsers, IIdentityRoleService roleService, IPasswordHasher passwordHasher)
 {
     this.repositoryUsers = repositoryUsers;
     this.roleService     = roleService;
     this.passwordHasher  = passwordHasher;
 }
 public GetRolesQueryHandler(IIdentityRoleService identityRoleService)
 {
     _identityRoleService = identityRoleService;
 }
Esempio n. 15
0
 public RoleStore(IIdentityRoleService roleService)
 {
     _roleService = roleService;
 }
Esempio n. 16
0
 public void SetUp()
 {
     _identityRoleRepository = new Mock <IIdentityRoleRepository>();
     _identityRoleService    = new IdentityRoleService(_identityRoleRepository.Object);
 }