public RoleManagementController(IRoleManagementRoleService service, ICurrentlyViewingUserService currentlyViewingUserService, Func<CreateRolePreCommand> createRolePreCommandAccessor, Func<RenameRolePreCommand> renameRolePreCommandAccessor) { if (service == null) throw new ArgumentNullException("service"); this.service = service; this.currentlyViewingUserService = currentlyViewingUserService; this.createRolePreCommandAccessor = createRolePreCommandAccessor; this.renameRolePreCommandAccessor = renameRolePreCommandAccessor; }
public RenameRolePreCommand(IRoleManagementRoleService service, IRoleManagementRoleValidatorResolver validatorResolver) { if (service == null) throw new ArgumentNullException("service"); if (validatorResolver == null) throw new ArgumentNullException("validatorResolver"); this.service = service; this.validatorResolver = validatorResolver; }