Skip to content

Commit

Permalink
fix: OR-1217 update expected exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lesage authored and janlesage committed Jan 12, 2024
1 parent ba71ce6 commit b5e2797
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -71,6 +71,6 @@ public async Task Then_it_returns_a_correct_message()
var responseBody = await _classFixture.Response.Content.ReadAsStringAsync();
var problemDetails = JsonConvert.DeserializeObject<JObject>(responseBody);

problemDetails["detail"].Value<string>().Should().Be(ExceptionMessages.VerenigingKanNietVerwijderdWorden);
problemDetails["detail"].Value<string>().Should().Be(ExceptionMessages.VerenigingWerdVerwijderd);
}
}

0 comments on commit b5e2797

Please sign in to comment.