requesting nationaliteit fields with fields
#language: en Feature: requesting nationaliteit fields with fields Rule: a nationality has type 'Nationaliteit' where the value of 'nationaliteit (05.10)' is not equal to 0000, 0002, 0499, 0500 Scenario Outline: the value of 'nationaliteit (05.10)' equals '<code>' Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data | naam | waarde | | nationaliteit (05.10) | <code> | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | nationaliteiten | Then the response has a person with a 'nationaliteit' with only the following data | naam | waarde | | type | Nationaliteit | | nationaliteit.code | <code> | | nationaliteit.omschrijving | <omschrijving> | Examples: | code | omschrijving | | 0001 | Nederlandse | | 0263 | Surinaamse | Rule: a nationality has type 'Staatloos' where the value of 'nationaliteit (05.10)' equals 0499 Scenario: the value of 'nationaliteit (05.10)' equals '0499' Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data | naam | waarde | | nationaliteit (05.10) | 0499 | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | nationaliteiten | Then the response has a person with a 'nationaliteit' with only the following data | naam | waarde | | type | Staatloos | Rule: a nationality has type 'BehandeldAlsNederlander' where the value of 'nationaliteit (05.10)' equals 0002 or where the value of 'bijzonder Nederlanderschap (65.10)' equals 'B' Scenario Outline: the value of '<element>' equals '<code>' Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data | naam | waarde | | <element> | <code> | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | nationaliteiten | Then the response has a person with a 'nationaliteit' with only the following data | naam | waarde | | type | BehandeldAlsNederlander | Examples: | element | code | | bijzonder Nederlanderschap (65.10) | B | | nationaliteit (05.10) | 0002 | Rule: a nationality has type 'VastgesteldNietNederlander' where the value of 'nationaliteit (05.10)' equals 0500 or where the value of 'bijzonder Nederlanderschap (65.10)' equals 'V' Scenario Outline: the value of '<element>' equals '<code>' Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data | naam | waarde | | <element> | <code> | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | nationaliteiten | Then the response has a person with a 'nationaliteit' with only the following data | naam | waarde | | type | VastgesteldNietNederlander | Examples: | element | code | | bijzonder Nederlanderschap (65.10) | V | | nationaliteit (05.10) | 0500 | Rule: a nationality has type 'Onbekend' where the value of 'nationaliteit (05.10)' equals 0000 Scenario: the value of 'nationaliteit (05.10)' equals '0000' Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data | naam | waarde | | nationaliteit (05.10) | 0000 | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | nationaliteiten | Then the response has a person with a 'nationaliteit' with only the following data | naam | waarde | | type | NationaliteitOnbekend | Rule: a person can have several current nationalities Scenario: the person has several nationalities Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data | naam | waarde | | nationaliteit (05.10) | 0263 | And the person has another 'nationaliteit' with the following data | naam | waarde | | nationaliteit (05.10) | 0455 | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | nationaliteiten | Then the response has a person with a 'nationaliteit' with only the following data | naam | waarde | | type | Nationaliteit | | nationaliteit.code | 0263 | | nationaliteit.omschrijving | Surinaamse | And the person has a 'nationaliteit' with only the following data | naam | waarde | | type | Nationaliteit | | nationaliteit.code | 0455 | | nationaliteit.omschrijving | Montenegrijnse | Rule: a nationality that has ended is not supplied Scenario: the person has only a nationality that has ended Given the person with citizen service number '000000012' has a 'nationaliteit' with the following data | naam | waarde | | nationaliteit (05.10) | 0001 | And the 'nationaliteit' has been changed to the following data | naam | waarde | | reden beëindigen (64.10) | 410 | | datum ingang geldigheid (85.10) | morgen | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | nationaliteiten | Then the response has a person without 'nationaliteit' data