feature/use-case-acceptance-tests-2 #117
@ -51,6 +51,11 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
||||
.given("personType", "LEGAL_PERSON")
|
||||
.given("tradeName", "Test AG")
|
||||
.given("contactCaption", "Test AG - Board of Directors")
|
||||
.given("postalAddress", """
|
||||
Shanghai-Allee 1
|
||||
20123 Hamburg
|
||||
""")
|
||||
.given("officePhoneNumber", "+49 40 654321-0")
|
||||
.given("emailAddress", "board-of-directors@test-ag.example.org")
|
||||
.doRun()
|
||||
.keep();
|
||||
@ -66,6 +71,11 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
||||
.given("givenName", "Michelle")
|
||||
.given("familyName", "Matthieu")
|
||||
.given("contactCaption", "Michelle Matthieu")
|
||||
.given("postalAddress", """
|
||||
An der Wandse 34
|
||||
22123 Hamburg
|
||||
""")
|
||||
.given("officePhoneNumber", "+49 40 123456")
|
||||
.given("emailAddress", "michelle.matthieu@example.org")
|
||||
.doRun()
|
||||
.keep();
|
||||
|
@ -44,8 +44,12 @@ public class CreatePartner extends UseCase<CreatePartner> {
|
||||
httpPost("/api/hs/office/contacts", usingJsonBody("""
|
||||
{
|
||||
"caption": ${contactCaption},
|
||||
"postalAddress": ${postalAddress???},
|
||||
"phoneNumbers": {
|
||||
"office": ${officePhoneNumber???}
|
||||
},
|
||||
"emailAddresses": {
|
||||
"main": ${emailAddress}
|
||||
"main": ${emailAddress???}
|
||||
}
|
||||
}
|
||||
"""))
|
||||
|
Loading…
Reference in New Issue
Block a user