Composing the aanhef where the surname of the person is empty or unknown.
# language: en Feature: Composing the aanhef where the surname of the person is empty or unknown. Rule: Where the surname of the person is empty or unknown and the name of the person is used, aanhef is not included The aanhef is not included in the answer where all of the following conditions are met: - the surname of the person is empty or unknown (.) - aanduidingNaamgebruik is not equal to "P" (partner) - the aanhef is not a form of address for the title of nobility of the person ("Hoogwelgeboren heer", "Hoogwelgeboren vrouwe", "Hooggeboren heer", "Hooggeboren vrouwe" or "Hoogheid") - the aanhef is not a form of address of a courtesy title based on the title of nobility of the partner ("Hoogwelgeboren vrouwe", "Hooggeboren vrouwe" or "Hoogheid") Scenario Outline: the name of the person is unknown with aanduiding naamgebruik "<naamgebruik>" Given the person with citizen service number '000000139' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | geslachtsnaam (02.40) | . | | aanduiding naamgebruik (61.10) | <naamgebruik> | And the person has a 'partner' with the following data | naam | waarde | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000139 | | fields | adressering.aanhef | Then the response has a person with the following 'adressering' data | naam | waarde | | aanhef | <aanhef> | Examples: | naamgebruik | aanhef | leveren naam | | P | Geachte mevrouw De Boer | WEL | Scenario Outline: the name of the person is unknown with aanduiding naamgebruik "<naamgebruik>" Given the person with citizen service number '000000139' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | geslachtsnaam (02.40) | . | | aanduiding naamgebruik (61.10) | <naamgebruik> | And the person has a 'partner' with the following data | naam | waarde | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000139 | | fields | adressering.aanhef | Then the response has a person with an empty 'adressering' object Examples: | naamgebruik | | E | | V | | N | Scenario Outline: a person with an unknown name has adellijkeTitelPredicaat "<adellijkeTitelPredicaat>" and geslacht "<geslacht>" and naamgebruik "<naamgebruik>" Given the person with citizen service number '000000139' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | <geslacht> | | voornamen (02.10) | Jo Anne | | adellijke titel of predicaat (02.20) | <adellijkeTitelPredicaat> | | aanduiding naamgebruik (61.10) | <naamgebruik> | And the person has a 'partner' with the following data | naam | waarde | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000139 | | fields | adressering.aanhef | Then the response has a person with the following 'adressering' data | naam | waarde | | aanhef | <aanhef> | Examples: | geslacht | adellijkeTitelPredicaat | naamgebruik | aanhef | leveren naam | | M | G | E | Hooggeboren heer | WEL | | M | G | V | Hooggeboren heer | WEL | | M | G | N | Hooggeboren heer | WEL | | M | G | P | Geachte heer De Boer | WEL | | V | G | E | Hooggeboren vrouwe | WEL | | V | JV | P | Geachte mevrouw De Boer | WEL | Scenario Outline: a person with an unknown name has adellijkeTitelPredicaat "<adellijkeTitelPredicaat>" and geslacht "<geslacht>" and naamgebruik "<naamgebruik>" Given the person with citizen service number '000000139' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | <geslacht> | | voornamen (02.10) | Jo Anne | | adellijke titel of predicaat (02.20) | <adellijkeTitelPredicaat> | | aanduiding naamgebruik (61.10) | <naamgebruik> | And the person has a 'partner' with the following data | naam | waarde | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000139 | | fields | adressering.aanhef | Then the response has a person with an empty 'adressering' object Examples: | geslacht | adellijkeTitelPredicaat | naamgebruik | | O | G | E | | V | JV | E | | V | JV | V | | V | JV | N |