requesting partner fields with fields
#language: en Feature: requesting partner fields with fields Scenario: the person has a current marriage Given the person with citizen service number '000000012' has a 'partner' with the following data | burgerservicenummer (01.20) | soort verbintenis (15.10) | voornamen (02.10) | | 123456789 | H | Merel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | partners | Then the response has a person with a 'partner' with only the following data | naam | waarde | | burgerservicenummer | 123456789 | | soortVerbintenis.code | H | | soortVerbintenis.omschrijving | huwelijk | And the 'partner' has the following 'naam' data | naam | waarde | | voornamen | Merel | | voorletters | M. | Scenario: the person has a current partnership Given the person with citizen service number '000000012' has a 'partner' with the following data | burgerservicenummer (01.20) | soort verbintenis (15.10) | voornamen (02.10) | | 123456789 | P | Reindert | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | partners | Then the response has a person with a 'partner' with only the following data | naam | waarde | | burgerservicenummer | 123456789 | | soortVerbintenis.code | P | | soortVerbintenis.omschrijving | geregistreerd partnerschap | And the 'partner' has the following 'naam' data | naam | waarde | | voornamen | Reindert | | voorletters | R. | Rule: Where there is no current marriage or registered partnership but there are one or more dissolved marriages or registered partnerships, only the most recently dissolved marriage or registered partnership is supplied Scenario: the person has a dissolved marriage or partnership Given the person with citizen service number '000000012' has a 'partner' with the following data | burgerservicenummer (01.20) | soort verbintenis (15.10) | voornamen (02.10) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | | 123456789 | H | Reindert | 20011109 | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | partners | Then the response has a person with a 'partner' with only the following data | naam | waarde | | burgerservicenummer | 123456789 | | soortVerbintenis.code | H | | soortVerbintenis.omschrijving | huwelijk | And the 'partner' has the following 'naam' data | naam | waarde | | voornamen | Reindert | | voorletters | R. | And the 'partner' has the following 'ontbindingHuwelijkPartnerschap' data | naam | waarde | | datum.type | Datum | | datum.datum | 2001-11-09 | | datum.langFormaat | 9 november 2001 | Scenario: the person has several dissolved marriages or partnerships Given the person with citizen service number '000000012' has a 'partner' with the following data | burgerservicenummer (01.20) | soort verbintenis (15.10) | voornamen (02.10) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | | 123456789 | H | Reindert | 20011109 | And the person has another 'partner' with the following data | burgerservicenummer (01.20) | soort verbintenis (15.10) | voornamen (02.10) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | | 234567890 | H | Jan | 20120401 | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | partners | Then the response has a person with a 'partner' with only the following data | naam | waarde | | burgerservicenummer | 234567890 | | soortVerbintenis.code | H | | soortVerbintenis.omschrijving | huwelijk | And the 'partner' has the following 'naam' data | naam | waarde | | voornamen | Jan | | voorletters | J. | And the 'partner' has the following 'ontbindingHuwelijkPartnerschap' data | naam | waarde | | datum.type | Datum | | datum.datum | 2012-04-01 | | datum.langFormaat | 1 april 2012 | Rule: Where there is a current marriage or registered partnership, only that current marriage or registered partnership is supplied Scenario: the person has one current and one dissolved marriage Given the person with citizen service number '000000012' has a 'partner' with the following data | burgerservicenummer (01.20) | soort verbintenis (15.10) | voornamen (02.10) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | | 123456789 | H | Reindert | 20011109 | And the person has another 'partner' with the following data | burgerservicenummer (01.20) | soort verbintenis (15.10) | voornamen (02.10) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 234567890 | H | Karel | 20051224 | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000012 | | fields | partners | Then the response has a person with a 'partner' with only the following data | naam | waarde | | burgerservicenummer | 234567890 | | soortVerbintenis.code | H | | soortVerbintenis.omschrijving | huwelijk | And the 'partner' has the following 'naam' data | naam | waarde | | voornamen | Karel | | voorletters | K. | And the 'partner' has the following 'aangaanHuwelijkPartnerschap' data | naam | waarde | | datum.type | Datum | | datum.datum | 2005-12-24 | | datum.langFormaat | 24 december 2005 |