HAALCENTRAAL English translation
BRP API / Bewoning / Features / veel-bewoners

supplying indicatieVeelBewoners when consulting occupancy within a period

#language: en

Feature: supplying indicatieVeelBewoners when consulting occupancy within a period

  As a consumer
  I want an indication where there are more than 100 registrations at the addressable object requested within the period requested
  So that I can investigate this


Rule: indicatieVeelBewoners is supplied where there are more than 100 occupants within a period

  Scenario: during the period requested, the addressable object has 101 occupants
    Given address 'A1' has the following data
    | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
    | 0800                 | 0800010000000001                         |
    And 101 persons are registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20200818                           |
    When occupancy is searched with the following parameters
    | naam                             | waarde             |
    | type                             | BewoningMetPeriode |
    | datumVan                         | 2020-08-18         |
    | datumTot                         | 2021-01-01         |
    | adresseerbaarObjectIdentificatie | 0800010000000001   |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2020-08-18 tot 2021-01-01 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    | indicatieVeelBewoners            | true                      |
    And the occupancy has no occupants and no possible occupants

  Scenario: during the period requested, the addressable object has 101 possible occupants
    Given address 'A1' has the following data
    | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
    | 0800                 | 0800010000000001                         |
    And 101 persons are registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20200800                           |
    When occupancy is searched with the following parameters
    | naam                             | waarde             |
    | type                             | BewoningMetPeriode |
    | datumVan                         | 2020-08-18         |
    | datumTot                         | 2021-01-01         |
    | adresseerbaarObjectIdentificatie | 0800010000000001   |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2020-08-18 tot 2021-01-01 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    | indicatieVeelBewoners            | true                      |
    And the occupancy has no occupants and no possible occupants

  Scenario: during the period requested, the addressable object has 101 occupants and possible occupants in total
    Given address 'A1' has the following data
    | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
    | 0800                 | 0800010000000001                         |
    And 81 persons are registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20200818                           |
    And 20 persons are registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20200800                           |
    When occupancy is searched with the following parameters
    | naam                             | waarde             |
    | type                             | BewoningMetPeriode |
    | datumVan                         | 2020-08-18         |
    | datumTot                         | 2021-01-01         |
    | adresseerbaarObjectIdentificatie | 0800010000000001   |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2020-08-18 tot 2021-01-01 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    | indicatieVeelBewoners            | true                      |
    And the occupancy has no occupants and no possible occupants

  Scenario: during the period requested, the addressable object has 100 occupants
    Given address 'A1' has the following data
    | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
    | 0800                 | 0800010000000001                         |
    And 100 persons are registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20200818                           |
    When occupancy is searched with the following parameters
    | naam                             | waarde             |
    | type                             | BewoningMetPeriode |
    | datumVan                         | 2020-08-18         |
    | datumTot                         | 2021-01-01         |
    | adresseerbaarObjectIdentificatie | 0800010000000001   |
    Then the response has an occupancy with 100 occupants and 0 possible occupants

  Scenario: during the period requested, the addressable object has 100 occupants and possible occupants in total
    Given address 'A1' has the following data
    | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
    | 0800                 | 0800010000000001                         |
    And 80 persons are registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20200818                           |
    And 20 persons are registered at address 'A1' with the following data
    | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
    | 0800                              | 20200800                           |
    When occupancy is searched with the following parameters
    | naam                             | waarde             |
    | type                             | BewoningMetPeriode |
    | datumVan                         | 2020-08-18         |
    | datumTot                         | 2020-09-01         |
    | adresseerbaarObjectIdentificatie | 0800010000000001   |
    Then the response has an occupancy with 80 occupants and 20 possible occupants