diff --git a/src/StreetNameRegistry.Api.BackOffice.Abstractions/Validation/RenameStreetName.cs b/src/StreetNameRegistry.Api.BackOffice.Abstractions/Validation/RenameStreetName.cs index 478b53b3e..4afd8f11c 100644 --- a/src/StreetNameRegistry.Api.BackOffice.Abstractions/Validation/RenameStreetName.cs +++ b/src/StreetNameRegistry.Api.BackOffice.Abstractions/Validation/RenameStreetName.cs @@ -16,7 +16,7 @@ public static class SourceStreetNameHasInvalidStatus public static class DestinationStreetNameHasInvalidStatus { - public const string Code = "StraatnaamAfgekeurdOfGehistoreerd"; + public const string Code = "StraatnaamGehistoreerdOfAfgekeurd"; public const string Message = "Deze actie is enkel toegestaan op straatnamen met status 'voorgesteld' of 'inGebruik'."; public static TicketError ToTicketError() => new TicketError(Message, Code); diff --git a/test/StreetNameRegistry.Tests/BackOffice/Lambda/WhenRenamingStreetName/GivenMunicipalityExists.cs b/test/StreetNameRegistry.Tests/BackOffice/Lambda/WhenRenamingStreetName/GivenMunicipalityExists.cs index ed01aa0a4..de6fce3fb 100644 --- a/test/StreetNameRegistry.Tests/BackOffice/Lambda/WhenRenamingStreetName/GivenMunicipalityExists.cs +++ b/test/StreetNameRegistry.Tests/BackOffice/Lambda/WhenRenamingStreetName/GivenMunicipalityExists.cs @@ -166,7 +166,7 @@ public async Task WhenDestinationStreetNameHasInvalidStatus_ThenTicketingErrorIs It.IsAny(), new TicketError( "Deze actie is enkel toegestaan op straatnamen met status 'voorgesteld' of 'inGebruik'.", - "StraatnaamAfgekeurdOfGehistoreerd"), + "StraatnaamGehistoreerdOfAfgekeurd"), CancellationToken.None)); }