From b845671617c03dd4e24cae2f88f4a2785c4be34e Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sat, 7 Dec 2024 07:18:27 +0100 Subject: [PATCH] create distinct partner details for incorporated vs. natural person --- .../office/scenarios/HsOfficeScenarioTests.java | 17 +++++++++++------ .../office/scenarios/partner/CreatePartner.java | 7 +++++-- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java index 41a1e4fe..fd14b3a6 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java @@ -93,6 +93,8 @@ class HsOfficeScenarioTests extends ScenarioTest { """) .given("officePhoneNumber", "+49 40 654321-0") .given("emailAddress", "hamburg@test-ag.example.org") + .given("registrationOffice", "Registergericht Hamburg") + .given("registrationNumber", "1234567") .doRun() .keep(); } @@ -118,6 +120,9 @@ class HsOfficeScenarioTests extends ScenarioTest { """) .given("officePhoneNumber", "+49 40 123456") .given("emailAddress", "michelle.matthieu@example.org") + .given("birthday", "1951-03-25") + .given("birthPlace", "Neustadt a.d.R.") + .given("birthName", "Eichbaum") .doRun() .keep(); } @@ -601,13 +606,13 @@ class HsOfficeScenarioTests extends ScenarioTest { .given("partnerNumber", "P-31011") .given("nameOfDeceasedPerson", "Michelle Matthieu") // FIXME: redundant .given( + // "name": "Erbengemeinschaft Michelle Matthieu", // FIXME: automatic? "communityOfHeirsPostalAddress", """ - "name": "Erbengemeinschaft Michelle Matthieu", // FIXME: automatic? - "co": "Lena Stadland", - "street": "Im Wischer", - "zipcode": "22987", - "city": "Hamburg", - "country": "Germany" + "co": "Lena Stadland", + "street": "Im Wischer 14", + "zipcode": "22987", + "city": "Hamburg", + "country": "Germany" """) .given("communityOfHeirsOfficePhoneNumber", "+49 40 666666") .given("communityOfHeirsEmailAddress", "lena.stadland@example.org") diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/CreatePartner.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/CreatePartner.java index 87ca7c87..a1ddccc4 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/CreatePartner.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/CreatePartner.java @@ -69,8 +69,11 @@ public class CreatePartner extends UseCase { "contact.uuid": ${Contact: %{contactCaption}} }, "details": { - "registrationOffice": "Registergericht Hamburg", - "registrationNumber": "1234567" + "birthday": ${birthday???}, + "birthPlace": ${birthPlace???}, + "birthName": ${birthName???}, + "registrationOffice": ${registrationOffice???}, + "registrationNumber": ${registrationNumber???} } } """))