Then step definitions
#language: en Feature: Then step definitions Scenario: Then the response has <count> occupancies Given the response body equals """ { "bewoningen": [] } """ Then the response has 0 occupancies Scenario: Then the response has an occupancy with <count> occupants and <count> possible occupants Given the response body equals """ { "bewoningen": [{ "bewoners": [ "1", "2" ], "mogelijkeBewoners": [ "3", "4", "5" ] }] } """ Then the response has an occupancy with 2 occupants and 3 possible occupants Scenario: Then the response has an occupancy with the following data Given the response body equals """ { "bewoningen": [ { "adresseerbaarObjectIdentificatie": "0518010000713450", "periode": { "datumVan": "2012-01-01", "datumTot": "2013-01-01" }, "bewoners": [], "mogelijkeBewoners": [] } ] } """ Then the response has an occupancy with the following data | naam | waarde | | periode | 2012-01-01 tot 2013-01-01 | | adresseerbaarObjectIdentificatie | 0518010000713450 | Scenario: Then the occupancy has no occupants and no possible occupants Given the response body equals """ { "bewoningen": [ { "adresseerbaarObjectIdentificatie": "0518010000713450", "periode": { "datumVan": "2012-01-01", "datumTot": "2013-01-01" }, "bewoners": [], "mogelijkeBewoners": [] } ] } """ Then the response has an occupancy with the following data | naam | waarde | | periode | 2012-01-01 tot 2013-01-01 | | adresseerbaarObjectIdentificatie | 0518010000713450 | And the occupancy has no occupants and no possible occupants Scenario: Then the occupancy has an occupant with the following data Given the response body equals """ { "bewoningen": [ { "adresseerbaarObjectIdentificatie": "0518010000713450", "periode": { "datumVan": "2012-01-01", "datumTot": "2013-01-01" }, "bewoners": [ { "burgerservicenummer": "000000024" } ], "mogelijkeBewoners": [] } ] } """ Then the response has an occupancy with the following data | naam | waarde | | periode | 2012-01-01 tot 2013-01-01 | | adresseerbaarObjectIdentificatie | 0518010000713450 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Scenario: Then the occupancy has occupants with the following data Given the response body equals """ { "bewoningen": [ { "adresseerbaarObjectIdentificatie": "0518010000713450", "periode": { "datumVan": "2012-01-01", "datumTot": "2013-01-01" }, "bewoners": [ { "burgerservicenummer": "000000024" }, { "burgerservicenummer": "000000048" } ], "mogelijkeBewoners": [] } ] } """ Then the response has an occupancy with the following data | naam | waarde | | periode | 2012-01-01 tot 2013-01-01 | | adresseerbaarObjectIdentificatie | 0518010000713450 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | | 000000048 | Scenario: Then the occupancy has a possible occupant with the following data Given the response body equals """ { "bewoningen": [ { "adresseerbaarObjectIdentificatie": "0518010000713450", "periode": { "datumVan": "2012-01-01", "datumTot": "2013-01-01" }, "bewoners": [], "mogelijkeBewoners": [ { "burgerservicenummer": "000000024" } ] } ] } """ Then the response has an occupancy with the following data | naam | waarde | | periode | 2012-01-01 tot 2013-01-01 | | adresseerbaarObjectIdentificatie | 0518010000713450 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000024 | Scenario: Then the occupancy has possible occupants with the following data Given the response body equals """ { "bewoningen": [ { "adresseerbaarObjectIdentificatie": "0518010000713450", "periode": { "datumVan": "2012-01-01", "datumTot": "2013-01-01" }, "bewoners": [], "mogelijkeBewoners": [ { "burgerservicenummer": "000000024" }, { "burgerservicenummer": "000000048" } ] } ] } """ Then the response has an occupancy with the following data | naam | waarde | | periode | 2012-01-01 tot 2013-01-01 | | adresseerbaarObjectIdentificatie | 0518010000713450 | And the occupancy has possible occupants with the following data | burgerservicenummer | | 000000024 | | 000000048 | Scenario: And the occupant has the following <gegevensgroep> data Given the response body equals """ { "bewoningen": [ { "adresseerbaarObjectIdentificatie": "0518010000713450", "periode": { "datumVan": "2012-01-01", "datumTot": "2013-01-01" }, "bewoners": [ { "burgerservicenummer": "000000024", "verblijfplaatsInOnderzoek": { "aanduidingGegevensInOnderzoek": "080000", "datumIngangOnderzoek" : "20200401" } } ], "mogelijkeBewoners": [] } ] } """ Then the response has an occupancy with the following data | naam | waarde | | periode | 2012-01-01 tot 2013-01-01 | | adresseerbaarObjectIdentificatie | 0518010000713450 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | And the occupant has the following 'verblijfplaatsInOnderzoek' data | aanduidingGegevensInOnderzoek | datumIngangOnderzoek | | 080000 | 20200401 |