# language: en # Drives S-19b-2 (#153), re-sourcing S-06 (#7). The read projection is derived from the # RegisterRecord in Objecten (ADR-0030), not from ZGW zaak events: the ACL records a registration # in the register, Objecten notifies, and the Event Subscriber projects the record that # notification points at. This scenario exercises the use case against in-memory stand-ins for the # register, the projection store and the notification log; real Objecten → NRC → subscriber # delivery is verified by the live-stack check (verify-projection, ADR-0007/0030). Feature: Register-projectie bijwerken op een registerwijziging Als openbaar register wil ik dat een registratie in de projectie verschijnt zodra zij in het register is vastgelegd, zodat het register haar actuele status kan tonen. Scenario: Een ingediende registratie levert een rij met status INGEDIEND Given registration "11111111-1111-1111-1111-111111111111" is recorded in the register with status "INGEDIEND" When the register notification is delivered to the event subscriber Then the register projection contains a row for "11111111-1111-1111-1111-111111111111" with status "INGEDIEND" Scenario: Een goedgekeurde registratie werkt dezelfde rij bij Given registration "33333333-3333-3333-3333-333333333333" is recorded in the register with status "INGEDIEND" And the register notification is delivered to the event subscriber When registration "33333333-3333-3333-3333-333333333333" is recorded in the register with status "INGESCHREVEN" And the register notification is delivered to the event subscriber Then the register projection contains a row for "33333333-3333-3333-3333-333333333333" with status "INGESCHREVEN" Scenario: Dezelfde notificatie tweemaal levert geen duplicaat Given registration "22222222-2222-2222-2222-222222222222" is recorded in the register with status "INGEDIEND" When the register notification is delivered to the event subscriber And the same register notification is delivered again Then the register projection contains exactly one row for "22222222-2222-2222-2222-222222222222"