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

supplying indicatieVeelBewoners when consulting occupancy on a reference date

#language: en

Feature: supplying indicatieVeelBewoners when consulting occupancy on a reference date

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


Rule: indicatieVeelBewoners is supplied where there are more than 100 occupants on a reference date

  Scenario: on the reference date 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                             | BewoningMetPeildatum |
    | peildatum                        | 2020-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2020-08-18 tot 2020-08-19 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    | indicatieVeelBewoners            | true                      |
    And the occupancy has no occupants and no possible occupants

  Scenario: on the reference date 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                             | BewoningMetPeildatum |
    | peildatum                        | 2020-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2020-08-18 tot 2020-08-19 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    | indicatieVeelBewoners            | true                      |
    And the occupancy has no occupants and no possible occupants

  Scenario: on the reference date 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                             | BewoningMetPeildatum |
    | peildatum                        | 2020-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with the following data
    | naam                             | waarde                    |
    | periode                          | 2020-08-18 tot 2020-08-19 |
    | adresseerbaarObjectIdentificatie | 0800010000000001          |
    | indicatieVeelBewoners            | true                      |
    And the occupancy has no occupants and no possible occupants

  Scenario: on the reference date 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                             | BewoningMetPeildatum |
    | peildatum                        | 2020-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with 100 occupants and 0 possible occupants

  Scenario: on the reference date 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                             | BewoningMetPeildatum |
    | peildatum                        | 2020-08-18           |
    | adresseerbaarObjectIdentificatie | 0800010000000001     |
    Then the response has an occupancy with 80 occupants and 20 possible occupants