consult occupancy on a reference date for an addressable object that has been changed infrastructurally
#language: en @gba Feature: consult occupancy on a reference date for an addressable object that has been changed infrastructurally Rule: occupancy is not supplied for an addressable object where the reference date falls before the date on which the BAG identifications were added Scenario Outline: the reference date falls on or after the addition of BAG identifications to the addressable object requested Given address 'A1' has the following data | gemeentecode (92.10) | straatnaam (11.10) | | 0800 | Spui | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And address 'A1' was updated on '2022-05-01' with the following data | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800010000000001 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | Examples: | peildatum | periode | | 2023-01-01 | 2023-01-01 tot 2023-01-02 | | 2022-05-01 | 2022-05-01 tot 2022-05-02 | Scenario: the reference date falls before the addition of BAG identifications to the addressable object requested Given address 'A1' has the following data | gemeentecode (92.10) | straatnaam (11.10) | | 0800 | Spui | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And address 'A1' was updated on '2022-05-01' with the following data | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800010000000001 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2022-04-30 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Rule: occupancy is not supplied for an addressable object that has been absorbed in a merger where the reference date falls on or after the date of the merger Scenario: the addressable object requested has been absorbed in a merger and the reference date falls after the date of the merger Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And address 'A1' was merged on '2022-05-01' into address 'A2' with the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000002 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Rule: occupancy is not supplied for an addressable object that arose from a merger where the reference date falls before the date of the merger Scenario: the addressable object requested arose from a merger and the reference date falls before the merger Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And address 'A1' was merged on '2022-05-01' into address 'A2' with the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000002 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2022-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has 0 occupancies Rule: occupancy is not supplied for an addressable object that has been split where the reference date falls on or after the date of the split Scenario: the addressable object requested has been split and the reference date falls after the date of the split Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And address 'A1' has been split into addresses with the following data | adres | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | A2 | 0800 | 0800010000000002 | 0800200022192682 | | A3 | 0800 | 0800010000000003 | 0800200010877001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A3' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Rule: occupancy is not supplied for an addressable object that arose from a split where the reference date falls before the date of the split Scenario Outline: occupancy is requested for an addressable object that arose from a split and the reference date falls before the date of the split Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And address 'A1' has been split into addresses with the following data | adres | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | A2 | 0800 | 0800010000000002 | 0800200022192682 | | A3 | 0800 | 0800010000000003 | 0800200010877001 | And the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A3' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2022-01-01 | | adresseerbaarObjectIdentificatie | <adresseerbaar object identificatie> | Then the response has 0 occupancies Examples: | adresseerbaar object identificatie | | 0800010000000002 | | 0800010000000003 |