consult occupancy within a period with secondary addresses
#language: en @gba Feature: consult occupancy within a period with secondary addresses Rule: a person registered at a secondary address is regarded as an occupant of the main address Scenario: a person is registered at the secondary address Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877405 | And address 'A2' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200022197986 | 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 | 20220818 | And the person with citizen service number '000000048' is registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220818 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2023-01-01 | | datumTot | 2023-08-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2023-01-01 tot 2023-08-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | | 000000048 |