public CreateUserRoleAssociationPreCommand(IAuthenticationUserManagementUserService userService, IAuthenticationUserManagementUserValidatorResolver validatorResolver, IAuthenticationUserManagementRoleService roleService) { if (userService == null) throw new ArgumentNullException("userService"); if (roleService == null) throw new ArgumentNullException("roleService"); if (validatorResolver == null) throw new ArgumentNullException("validatorResolver"); this.userService = userService; this.validatorResolver = validatorResolver; this.roleService = roleService; }
public AuthenticationUserManagementController(IAuthenticationUserManagementUserService service, IAuthenticationUserManagementRoleService roleService, Func<CreateUserRoleAssociationPreCommand> createUserRoleAssociationPreCommandAccessor, IProvideUserConfiguration userConfiguration, Func<RemoveUserRoleAssociationPreCommand> removeUserRoleAssociationPreCommandAccessor, ICurrentlyViewingUserService currentlyViewingUserService) { if (service == null) throw new ArgumentNullException("service"); if (roleService == null) throw new ArgumentNullException("roleService"); if (userConfiguration == null) throw new ArgumentNullException("userConfiguration"); this.service = service; this.roleService = roleService; this.createUserRoleAssociationPreCommandAccessor = createUserRoleAssociationPreCommandAccessor; this.userConfiguration = userConfiguration; this.removeUserRoleAssociationPreCommandAccessor = removeUserRoleAssociationPreCommandAccessor; this.currentlyViewingUserService = currentlyViewingUserService; }