determining the start and end date for a correspondence address for occupancy on a reference date
#language: en @gba Feature: determining the start and end date for a correspondence address for occupancy on a reference date Background: Given address 'vorige' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And address 'gevraagd' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000002 | And address 'volgende' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000003 | Scenario Outline: verblijfplaats with a partly unknown start date and the previous verblijfplaats is a correspondence address with <scenario> Given the person with citizen service number '000000012' has given address 'vorige' as a correspondence address with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220526 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220000 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has 0 occupancies Examples: | peildatum | scenario | | 2022-05-26 | peildatum is datum aanvang vorige | | 2022-01-01 | peildatum voor datum aanvang vorige en in onzekerheidsperiode | Scenario Outline: verblijfplaats with a partly unknown start date and the previous verblijfplaats is a correspondence address with <scenario> Given the person with citizen service number '000000012' has given address 'vorige' as a correspondence address with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220526 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220000 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <peildatum> tot <periode tot> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | peildatum | periode tot | scenario | | 2022-05-27 | 2022-05-28 | peildatum dag na datum aanvang vorige | | 2022-07-30 | 2022-07-31 | peildatum na datum aanvang vorige | Scenario Outline: verblijfplaats with a partly unknown start date and the previous verblijfplaats is a correspondence address with <scenario> Given the person with citizen service number '000000012' has given address 'vorige' as a correspondence address with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220526 | And the person was subsequently registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220000 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <peildatum> tot <periode tot> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | peildatum | periode tot | scenario | | 2023-01-01 | 2023-01-02 | peildatum na onzekerheidsperiode | Scenario: the next verblijfplaats is a correspondence address and the reference date is the start date of the next verblijfplaats Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20160526 | And the person has subsequently given address 'volgende' as a correspondence address with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220810 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2022-08-10 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has 0 occupancies Scenario: the next verblijfplaats is a correspondence address and the reference date is the day before the start date of the next verblijfplaats Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20160526 | And the person has subsequently given address 'volgende' as a correspondence address with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220810 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2022-08-09 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2022-08-09 tot 2022-08-10 | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Scenario: the verblijfplaats changes from a residential address to a correspondence address and <scenario> Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20160526 | And the person has subsequently given address 'gevraagd' as a correspondence address with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220810 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has 0 occupancies Examples: | peildatum | scenario | | 2022-08-10 | peildatum is datum aanvang van het briefadres | | 2022-09-01 | peildatum na datum aanvang van het briefadres | Scenario: the next verblijfplaats with a partly unknown start date is a correspondence address Given the person with citizen service number '000000012' is registered at address 'gevraagd' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20160526 | And the person has subsequently given address 'volgende' as a correspondence address with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20220800 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | <peildatum> | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | <peildatum> tot <periode tot> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | peildatum | periode tot | scenario | | 2022-08-01 | 2022-08-02 | peildatum is eerste dag onzekerheidsperiode van het briefadres | | 2022-08-31 | 2022-09-01 | peildatum is laatste dag onzekerheidsperiode van het briefadres |