consult occupancy of a corrected verblijfplaats
#language: en @gba Feature: consult occupancy of a corrected verblijfplaats As a consumer of the Bewoning API I want occupancy to be based only on correct data and incorrect (corrected) data to be ignored Background: Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | And address 'A2' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000002 | Rule: corrected data is not used Scenario: the start date of the stay has been corrected and the reference date falls before the correct date but after the incorrect start date Given 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 | 20160526 | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | 20160601 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2016-05-28 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Scenario: the start date of the stay has been corrected and the reference date falls after the correct date but before the incorrect start date Given 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 | 20160601 | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | 20160526 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2016-05-28 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2016-05-28 tot 2016-05-29 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Scenario: the start date of the next stay has been corrected and the reference date falls after the correct date but before the incorrect start date of the next stay Given 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) | | 0800 | 20160601 | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | 20160526 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2016-05-28 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Scenario: the start date of the next stay has been corrected and the reference date falls before the correct date but after the incorrect start date of the next stay Given 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) | | 0800 | 20160526 | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | 20160601 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2016-05-28 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2016-05-28 tot 2016-05-29 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Scenario: the start date of the stay has been corrected to a partly unknown date and the reference date falls within the period of uncertainty and before the incorrect start date Given 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) | | 0800 | 20160526 | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | 20160000 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2016-05-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2016-05-01 tot 2016-05-02 | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000024 | Scenario Outline: the start date of the next stay has been corrected to a partly unknown date and the reference date falls within the period of uncertainty and <scenario> Given 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) | | 0800 | 20160526 | And the 'verblijfplaats' has been corrected to the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | functie adres (10.10) | | 0800 | 20160000 | W | 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 a possible occupant with the following data | burgerservicenummer | | 000000024 | Examples: | peildatum | periode | scenario | | 2016-05-01 | 2016-05-01 tot 2016-05-02 | voor de onjuiste datum aanvang | | 2016-06-01 | 2016-06-01 tot 2016-06-02 | na de onjuiste datum aanvang | Scenario Outline: the previous stay has been corrected to a registration with a partly unknown date and the reference date falls within the period of uncertainty and <scenario> Given 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 | 20160218 | And the 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | | 0000 | 20160526 | And the registration was subsequently corrected as a registration at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20160000 | 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 | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000024 | Examples: | peildatum | periode | scenario | | 2016-05-01 | 2016-05-01 tot 2016-05-02 | voor de datum aanvang onjuiste vorige verblijf en na datum aanvang juiste vorig verblijf | | 2016-06-01 | 2016-06-01 tot 2016-06-02 | na de datum aanvang onjuiste vorige verblijf | Scenario: the previous stay has been corrected to a registration with a partly unknown date and the reference date falls within the period of uncertainty, before the start date of the incorrect previous stay and before the start date of the correct previous stay Given 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 | 20160218 | And the 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | | 0000 | 20160526 | And the registration was subsequently corrected as a registration at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20160000 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeildatum | | peildatum | 2016-02-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has 0 occupancies