test_class.declarator: ORGANIZATION_ID = randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID ORGANIZATION_ID = randomUUID();
test_class.type: UUID
test_class.var_name: ORGANIZATION_ID
test_class.declarator: REGISTERING_USER_ID = randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID REGISTERING_USER_ID = randomUUID();
test_class.type: UUID
test_class.var_name: REGISTERING_USER_ID
test_class.declarator: REGISTRATION_CONFIRMATION_CODE = randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID REGISTRATION_CONFIRMATION_CODE = randomUUID();
test_class.type: UUID
test_class.var_name: REGISTRATION_CONFIRMATION_CODE
test_class.declarator: CONTACT_EMAIL = "email@example.com"
test_class.modifier: private static final
test_class.original_string: private static final String CONTACT_EMAIL = "email@example.com";
test_class.type: String
test_class.var_name: CONTACT_EMAIL
test_class.declarator: ENCODED_PASSWORD = "encoded-password"
test_class.modifier: private static final
test_class.original_string: private static final String ENCODED_PASSWORD = "encoded-password";
test_class.type: String
test_class.var_name: ENCODED_PASSWORD
test_class.declarator: ORGANIZATION_NAME = "organization-name"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_NAME = "organization-name";
test_class.type: String
test_class.var_name: ORGANIZATION_NAME
test_class.declarator: WEBSITE_URL = "websiteurl"
test_class.modifier: private static final
test_class.original_string: private static final String WEBSITE_URL = "websiteurl";
test_class.type: String
test_class.var_name: WEBSITE_URL
test_class.declarator: STREET = "street"
test_class.modifier: private static final
test_class.original_string: private static final String STREET = "street";
test_class.type: String
test_class.var_name: STREET
test_class.declarator: CITY = "city"
test_class.modifier: private static final
test_class.original_string: private static final String CITY = "city";
test_class.type: String
test_class.var_name: CITY
test_class.declarator: STATE = "state"
test_class.modifier: private static final
test_class.original_string: private static final String STATE = "state";
test_class.type: String
test_class.var_name: STATE
test_class.declarator: COUNTRY = "country"
test_class.modifier: private static final
test_class.original_string: private static final String COUNTRY = "country";
test_class.type: String
test_class.var_name: COUNTRY
test_class.declarator: POSTAL_CODE = "postal-code"
test_class.modifier: private static final
test_class.original_string: private static final String POSTAL_CODE = "postal-code";
test_class.type: String
test_class.var_name: POSTAL_CODE
test_class.declarator: CONTACT_NAME = "contact name"
test_class.modifier: private static final
test_class.original_string: private static final String CONTACT_NAME = "contact name";
test_class.type: String
test_class.var_name: CONTACT_NAME
test_class.declarator: CONTACT_PHONE_NUMBER = "contact phone number"
test_class.modifier: private static final
test_class.original_string: private static final String CONTACT_PHONE_NUMBER = "contact phone number";
test_class.type: String
test_class.var_name: CONTACT_PHONE_NUMBER
test_class.declarator: REGISTRATION_RECEIVED_TIME = Instant.now()
test_class.modifier: private static final
test_class.original_string: private static final Instant REGISTRATION_RECEIVED_TIME = Instant.now();
test_class.type: Instant
test_class.var_name: REGISTRATION_RECEIVED_TIME
test_class.declarator: pendingRegistrationsEventHandler
test_class.modifier: private
test_class.original_string: private PendingRegistrationsEventHandler pendingRegistrationsEventHandler;
test_class.type: PendingRegistrationsEventHandler
test_class.var_name: pendingRegistrationsEventHandler
test_class.declarator: pendingRegistrationsRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PendingRegistrationsRepository pendingRegistrationsRepository;
test_class.type: PendingRegistrationsRepository
test_class.var_name: pendingRegistrationsRepository
test_class.file: pending-registrations/src/test/java/engineering/everest/lhotse/registrations/eventhandlers/PendingRegistrationsEventHandlerTest.java
test_class.identifier: PendingRegistrationsEventHandlerTest
test_case.body: @Test
      void onOrganizationRegistrationCompleted_WillDeleteProjectedPendingRegistration() {
          var organizationRegistrationCompletedEvent = new OrganizationRegistrationCompletedEvent(REGISTRATION_CONFIRMATION_CODE, ORGANIZATION_ID, REGISTERING_USER_ID);
          pendingRegistrationsEventHandler.on(organizationRegistrationCompletedEvent);
  
          verify(pendingRegistrationsRepository).deleteById(REGISTRATION_CONFIRMATION_CODE);
      }
test_case.class_method_signature: PendingRegistrationsEventHandlerTest.onOrganizationRegistrationCompleted_WillDeleteProjectedPendingRegistration()
test_case.full_signature: @Test void onOrganizationRegistrationCompleted_WillDeleteProjectedPendingRegistration()
test_case.identifier: onOrganizationRegistrationCompleted_WillDeleteProjectedPendingRegistration
test_case.invocations: on deleteById verify
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void onOrganizationRegistrationCompleted_WillDeleteProjectedPendingRegistration()
focal_class.declarator: pendingRegistrationsRepository
focal_class.modifier: private final
focal_class.original_string: private final PendingRegistrationsRepository pendingRegistrationsRepository;
focal_class.type: PendingRegistrationsRepository
focal_class.var_name: pendingRegistrationsRepository
focal_class.file: pending-registrations/src/main/java/engineering/everest/lhotse/registrations/eventhandlers/PendingRegistrationsEventHandler.java
focal_class.identifier: PendingRegistrationsEventHandler
focal_class.interfaces: implements ReplayCompletionAware
focal_class.class_method_signature: PendingRegistrationsEventHandler.PendingRegistrationsEventHandler(PendingRegistrationsRepository pendingRegistrationsRepository)
focal_class.full_signature: public  PendingRegistrationsEventHandler(PendingRegistrationsRepository pendingRegistrationsRepository)
focal_class.identifier: PendingRegistrationsEventHandler
focal_class.modifiers: public
focal_class.parameters: (PendingRegistrationsRepository pendingRegistrationsRepository)
focal_class.signature:  PendingRegistrationsEventHandler(PendingRegistrationsRepository pendingRegistrationsRepository)
focal_class.class_method_signature: PendingRegistrationsEventHandler.prepareForReplay()
focal_class.full_signature: @ResetHandler public void prepareForReplay()
focal_class.identifier: prepareForReplay
focal_class.modifiers: @ResetHandler public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void prepareForReplay()
focal_class.class_method_signature: PendingRegistrationsEventHandler.on(OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)
focal_class.full_signature: @EventHandler void on(OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)
focal_class.identifier: on
focal_class.modifiers: @EventHandler
focal_class.parameters: (OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)
focal_class.return: void
focal_class.signature: void on(OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)
focal_class.class_method_signature: PendingRegistrationsEventHandler.on(OrganizationRegistrationConfirmationEmailSentEvent event)
focal_class.full_signature: @EventHandler @DisallowReplay void on(OrganizationRegistrationConfirmationEmailSentEvent event)
focal_class.identifier: on
focal_class.modifiers: @EventHandler @DisallowReplay
focal_class.parameters: (OrganizationRegistrationConfirmationEmailSentEvent event)
focal_class.return: void
focal_class.signature: void on(OrganizationRegistrationConfirmationEmailSentEvent event)
focal_class.class_method_signature: PendingRegistrationsEventHandler.on(OrganizationRegistrationCompletedEvent event)
focal_class.full_signature: @EventHandler void on(OrganizationRegistrationCompletedEvent event)
focal_class.identifier: on
focal_class.modifiers: @EventHandler
focal_class.parameters: (OrganizationRegistrationCompletedEvent event)
focal_class.return: void
focal_class.signature: void on(OrganizationRegistrationCompletedEvent event)
focal_class.class_method_signature: PendingRegistrationsEventHandler.on(OrganizationRegistrationConfirmedAfterUserWithEmailCreatedEvent event)
focal_class.full_signature: @EventHandler void on(OrganizationRegistrationConfirmedAfterUserWithEmailCreatedEvent event)
focal_class.identifier: on
focal_class.modifiers: @EventHandler
focal_class.parameters: (OrganizationRegistrationConfirmedAfterUserWithEmailCreatedEvent event)
focal_class.return: void
focal_class.signature: void on(OrganizationRegistrationConfirmedAfterUserWithEmailCreatedEvent event)
focal_method.body: @EventHandler
      void on(OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime) {
          LOGGER.info("Creating pending registration for organization {}", event.getOrganizationId());
          pendingRegistrationsRepository.createPendingRegistration(event.getRegistrationConfirmationCode(),
                  event.getOrganizationId(), event.getRegisteringUserId(), event.getRegisteringContactEmail(),
                  registrationReceivedTime);
      }
focal_method.class_method_signature: PendingRegistrationsEventHandler.on(OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)
focal_method.full_signature: @EventHandler void on(OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)
focal_method.identifier: on
focal_method.invocations: info getOrganizationId createPendingRegistration getRegistrationConfirmationCode getOrganizationId getRegisteringUserId getRegisteringContactEmail
focal_method.modifiers: @EventHandler
focal_method.parameters: (OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)
focal_method.return: void
focal_method.signature: void on(OrganizationRegistrationReceivedEvent event, @Timestamp Instant registrationReceivedTime)