@Test void updateOrganisation_WillSendCommandAndWaitForCompletion() { defaultOrganizationService.updateOrganization(ADMIN_ID, ORGANIZATION_ID, ORGANIZATION_NAME, ORGANIZATION_STREET_1, ORGANIZATION_CITY_1, ORGANIZATION_STATE_1, ORGANIZATION_COUNTRY_1, ORGANIZATION_POSTAL_CODE_1, ORGANIZATION_WEBSITE_URL_1, ORGANIZATION_CONTACT_NAME_1, ORGANIZATION_PHONE_NUMBER_1, ORG_ADMIN_EMAIL_ADDRESS_1); verify(commandGateway).sendAndWait(new UpdateOrganizationCommand(ORGANIZATION_ID, ADMIN_ID, ORGANIZATION_NAME, ORGANIZATION_STREET_1, ORGANIZATION_CITY_1, ORGANIZATION_STATE_1, ORGANIZATION_COUNTRY_1, ORGANIZATION_POSTAL_CODE_1, ORGANIZATION_WEBSITE_URL_1, ORGANIZATION_CONTACT_NAME_1, ORGANIZATION_PHONE_NUMBER_1, ORG_ADMIN_EMAIL_ADDRESS_1)); }
@Override public void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName, String street, String city, String state, String country, String postalCode, String websiteUrl, String contactName, String phoneNumber, String emailAddress) { commandGateway.sendAndWait(new UpdateOrganizationCommand(organizationId, requestingUserId, organizationName, street, city, state, country, postalCode, websiteUrl, contactName, phoneNumber, emailAddress)); }
DefaultOrganizationsService implements OrganizationsService { @Override public void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName, String street, String city, String state, String country, String postalCode, String websiteUrl, String contactName, String phoneNumber, String emailAddress) { commandGateway.sendAndWait(new UpdateOrganizationCommand(organizationId, requestingUserId, organizationName, street, city, state, country, postalCode, websiteUrl, contactName, phoneNumber, emailAddress)); } }
DefaultOrganizationsService implements OrganizationsService { @Override public void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName, String street, String city, String state, String country, String postalCode, String websiteUrl, String contactName, String phoneNumber, String emailAddress) { commandGateway.sendAndWait(new UpdateOrganizationCommand(organizationId, requestingUserId, organizationName, street, city, state, country, postalCode, websiteUrl, contactName, phoneNumber, emailAddress)); } DefaultOrganizationsService(RandomFieldsGenerator randomFieldsGenerator, HazelcastCommandGateway commandGateway); }
DefaultOrganizationsService implements OrganizationsService { @Override public void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName, String street, String city, String state, String country, String postalCode, String websiteUrl, String contactName, String phoneNumber, String emailAddress) { commandGateway.sendAndWait(new UpdateOrganizationCommand(organizationId, requestingUserId, organizationName, street, city, state, country, postalCode, websiteUrl, contactName, phoneNumber, emailAddress)); } DefaultOrganizationsService(RandomFieldsGenerator randomFieldsGenerator, HazelcastCommandGateway commandGateway); @Override void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName,
                                   String street, String city, String state, String country, String postalCode,
                                   String websiteUrl, String contactName, String phoneNumber, String emailAddress); @Override UUID createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                             String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                             String emailAddress); @Override void disableOrganization(UUID requestingUserId, UUID organizationId); @Override void enableOrganization(UUID requestingUserId, UUID organizationId); }
DefaultOrganizationsService implements OrganizationsService { @Override public void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName, String street, String city, String state, String country, String postalCode, String websiteUrl, String contactName, String phoneNumber, String emailAddress) { commandGateway.sendAndWait(new UpdateOrganizationCommand(organizationId, requestingUserId, organizationName, street, city, state, country, postalCode, websiteUrl, contactName, phoneNumber, emailAddress)); } DefaultOrganizationsService(RandomFieldsGenerator randomFieldsGenerator, HazelcastCommandGateway commandGateway); @Override void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName,
                                   String street, String city, String state, String country, String postalCode,
                                   String websiteUrl, String contactName, String phoneNumber, String emailAddress); @Override UUID createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                             String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                             String emailAddress); @Override void disableOrganization(UUID requestingUserId, UUID organizationId); @Override void enableOrganization(UUID requestingUserId, UUID organizationId);  }