class AssessorServiceImpl implements AssessorService {

    @Override
    public ServiceResult<Void> createAssessorByInviteHash(String inviteHash, RegistrationForm registrationForm, AddressResource address) {
        UserRegistrationResource userRegistrationResource = new UserRegistrationResource();
        userRegistrationResource.setFirstName(registrationForm.getFirstName());
        userRegistrationResource.setLastName(registrationForm.getLastName());
        userRegistrationResource.setPhoneNumber(registrationForm.getPhoneNumber());
        userRegistrationResource.setPassword(registrationForm.getPassword());
        userRegistrationResource.setAddress(address);

        return assessorRestService.createAssessorByInviteHash(inviteHash, userRegistrationResource).toServiceResult();
    }

}