OfficeScenarioTests CoopShares+Assets #121

Merged
hsh-michaelhoennig merged 39 commits from feature/use-case-acceptance-tests-4 into master 2024-11-15 11:54:19 +01:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 385c2c0b75 - Show all commits

View File

@ -321,7 +321,6 @@ class HsOfficeScenarioTests extends ScenarioTest {
void shouldCreateMembershipForPartner() { void shouldCreateMembershipForPartner() {
new CreateMembership(this) new CreateMembership(this)
.given("partnerName", "Test AG") .given("partnerName", "Test AG")
.given("memberNumberSuffix", "00") // FIXME: move into CreateMembership
.given("validFrom", "2024-10-15") .given("validFrom", "2024-10-15")
.given("newStatus", "ACTIVE") .given("newStatus", "ACTIVE")
.given("membershipFeeBillable", "true") .given("membershipFeeBillable", "true")

View File

@ -27,7 +27,7 @@ public class CreateMembership extends UseCase<CreateMembership> {
return httpPost("/api/hs/office/memberships", usingJsonBody(""" return httpPost("/api/hs/office/memberships", usingJsonBody("""
{ {
"partner.uuid": ${Partner: %{partnerName}}, "partner.uuid": ${Partner: %{partnerName}},
"memberNumberSuffix": ${memberNumberSuffix}, "memberNumberSuffix": ${%{memberNumberSuffix???}???00},
"status": "ACTIVE", "status": "ACTIVE",
"validFrom": ${validFrom}, "validFrom": ${validFrom},
"membershipFeeBillable": ${membershipFeeBillable} "membershipFeeBillable": ${membershipFeeBillable}