Skip to content

Commit

Permalink
fix: or-1821 duplicate detection evenst consumer did not listen to ad…
Browse files Browse the repository at this point in the history
…dress match events
  • Loading branch information
Jan Lesage authored and janlesage committed Apr 23, 2024
1 parent aa4d8f8 commit 9c8ecc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public async Task ConsumeAsync(IReadOnlyList<StreamAction> streamActions)
case nameof(VerenigingWerdVerwijderd):
case nameof(NaamWerdGewijzigdInKbo):
case nameof(KorteNaamWerdGewijzigdInKbo):
case nameof(AdresWerdOvergenomenUitAdressenregister):
await _duplicateDetectionProjectionHandler.Handle(eventEnvelope);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,13 @@ public async Task Then_it_should_have_placed_message_on_sqs_for_address_match()
using (new AssertionScope())
{
stream.Should().HaveCount(5);

// Affligem locatie
var werdOvergenomenAffligem =
werdenOvergenomen.SingleOrDefault(
x => x.Data.OvergenomenAdresUitAdressenregister.Adres.Gemeente == "Affligem");

// Affligem locatie werd verwijderd en mag niet meer teruggevonden worden
werdOvergenomenAffligem.Should().BeNull();

// Hekelgem locatie
Expand Down

0 comments on commit 9c8ecc2

Please sign in to comment.