Right to vote
# language: en Feature: Right to vote Rule: uitsluitingKiesrecht data is supplied where 'einddatum uitsluiting kiesrecht (38.20)' has no value Scenario: the person is excluded from the right to vote with no end date of exclusion Given the person with citizen service number '000000127' has the following 'kiesrecht' data | aanduiding uitgesloten kiesrecht (38.10) | | A | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000127 | | fields | uitsluitingKiesrecht | Then the response has a person with the following 'uitsluitingKiesrecht' data | naam | waarde | | uitgeslotenVanKiesrecht | true | Rule: uitsluitingKiesrecht data is supplied where 'einddatum uitsluiting kiesrecht (38.20)' lies in the future Scenario: 'einddatum uitsluiting kiesrecht (38.20)' lies in the future Given the person with citizen service number '000000127' has the following 'kiesrecht' data | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) | | A | morgen | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000127 | | fields | uitsluitingKiesrecht.uitgeslotenVanKiesrecht | Then the response has a person with the following 'uitsluitingKiesrecht' data | naam | waarde | | uitgeslotenVanKiesrecht | true | Scenario Outline: 'einddatum uitsluiting kiesrecht (38.20)' is today or a date in the past Given the person with citizen service number '000000127' has the following 'kiesrecht' data | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) | | A | <einddatum uitsluiting> | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000127 | | fields | uitsluitingKiesrecht | Then the response has a person without data Examples: | einddatum uitsluiting | | vandaag | | gisteren | | vandaag - 1 jaar | | vorige maand | | vorig jaar | Rule: For a 'einddatum uitsluiting kiesrecht (38.20)' of which only the year is known, uitsluitingKiesrecht data is supplied where the year equals the current year or where the year lies in the future Scenario Outline: 'einddatum uitsluiting kiesrecht (38.20)' is <einddatum uitsluiting> Given the person with citizen service number '000000164' has the following 'kiesrecht' data | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) | | A | <einddatum uitsluiting> | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000164 | | fields | uitsluitingKiesrecht.uitgeslotenVanKiesrecht | Then the response has a person with the following 'uitsluitingKiesrecht' data | naam | waarde | | uitgeslotenVanKiesrecht | true | Examples: | einddatum uitsluiting | | dit jaar | | volgend jaar | Rule: For a 'einddatum uitsluiting kiesrecht (38.20)' whose day is not known, uitsluitingKiesrecht data is supplied where the year and month equal the current month or a month in the future Scenario Outline: 'einddatum uitsluiting kiesrecht (38.20)' is <einddatum uitsluiting> Given the person with citizen service number '000000164' has the following 'kiesrecht' data | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) | | A | <einddatum uitsluiting> | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000164 | | fields | uitsluitingKiesrecht.uitgeslotenVanKiesrecht | Then the response has a person with the following 'uitsluitingKiesrecht' data | naam | waarde | | uitgeslotenVanKiesrecht | true | Examples: | einddatum uitsluiting | | deze maand | | volgende maand | Rule: uitsluitingKiesrecht data is supplied for an unknown 'einddatum uitsluiting kiesrecht (38.20)' Scenario: 'einddatum uitsluiting kiesrecht (38.20)' is unknown Given the person with citizen service number '000000164' has the following 'kiesrecht' data | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) | | A | 00000000 | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000164 | | fields | uitsluitingKiesrecht.uitgeslotenVanKiesrecht | Then the response has a person with the following 'uitsluitingKiesrecht' data | naam | waarde | | uitgeslotenVanKiesrecht | true | Rule: uitsluitingKiesrecht data is not supplied where 'aanduiding uitgesloten kiesrecht (38.10)' has no value Scenario: 'aanduiding uitgesloten kiesrecht (38.10)' has no value Given the person with citizen service number '000000164' has the following 'kiesrecht' data | einddatum uitsluiting kiesrecht (38.20) | | morgen | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000164 | | fields | uitsluitingKiesrecht | Then the response has a person without data Scenario: the person has no uitsluitingKiesrecht data Given the person with citizen service number '000000164' has the following data | geslachtsnaam (02.40) | | Janssen | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000164 | | fields | uitsluitingKiesrecht | Then the response has a person without data