From b5e2797eabbd8ad0ff38286aaefc33ff7a0e11e9 Mon Sep 17 00:00:00 2001 From: Jan Lesage Date: Fri, 12 Jan 2024 14:21:08 +0100 Subject: [PATCH] fix: OR-1217 update expected exception message --- .../When_Removing_A_Vereniging/Given_A_Removed_Vereniging.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/AssociationRegistry.Test.Admin.Api/FeitelijkeVereniging/When_Removing_A_Vereniging/Given_A_Removed_Vereniging.cs b/test/AssociationRegistry.Test.Admin.Api/FeitelijkeVereniging/When_Removing_A_Vereniging/Given_A_Removed_Vereniging.cs index c5d0c6893..a91e45f6d 100644 --- a/test/AssociationRegistry.Test.Admin.Api/FeitelijkeVereniging/When_Removing_A_Vereniging/Given_A_Removed_Vereniging.cs +++ b/test/AssociationRegistry.Test.Admin.Api/FeitelijkeVereniging/When_Removing_A_Vereniging/Given_A_Removed_Vereniging.cs @@ -28,7 +28,7 @@ public Remove_A_Removed_Vereniging(EventsInDbScenariosFixture fixture) public async Task InitializeAsync() { - Response = await _fixture.SuperAdminApiClient.DeleteVereniging(Scenario.VCode, "Omdat"); + Response = await _fixture.SuperAdminApiClient.DeleteVereniging(Scenario.VCode, reason: "Omdat"); } public Task DisposeAsync() @@ -71,6 +71,6 @@ public async Task Then_it_returns_a_correct_message() var responseBody = await _classFixture.Response.Content.ReadAsStringAsync(); var problemDetails = JsonConvert.DeserializeObject(responseBody); - problemDetails["detail"].Value().Should().Be(ExceptionMessages.VerenigingKanNietVerwijderdWorden); + problemDetails["detail"].Value().Should().Be(ExceptionMessages.VerenigingWerdVerwijderd); } }