public UpdateProfileNamePreCommand(IProfileManagementProfileService service, IProfileManagementProfileValidatorResolver validatorResolver)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            if (validatorResolver == null)
                throw new ArgumentNullException("validatorResolver");

            this.service = service;
            this.validatorResolver = validatorResolver;
        }
        public ProfileManagementController(IProfileManagementProfileService service, IProvideCurrentUserDetails provideCurrentUser, Func<UpdateEmailAddressPreCommand> updateEmailAddressPreCommandAccessor, Func<UpdateProfileNamePreCommand> updateProfileNamePreCommandAccessor)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            if (provideCurrentUser == null)
                throw new ArgumentNullException("provideCurrentUser");

            this.service = service;
            this.provideCurrentUser = provideCurrentUser;
            this.updateEmailAddressPreCommandAccessor = updateEmailAddressPreCommandAccessor;
            this.updateProfileNamePreCommandAccessor = updateProfileNamePreCommandAccessor;
        }