コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }