Skip to content

Commit

Permalink
fix(registration): fix bpdm details region mapping (#980)
Browse files Browse the repository at this point in the history
* get CompanyBpdmDetailData.Region from bpdm's legalEntity.LegalEntityAddress.PhysicalPostalAddress.District
* adjust unit tests
  • Loading branch information
dhiren-singh-007 authored Sep 17, 2024
1 parent 224a6a0 commit adf29d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private async Task<CompanyBpdmDetailData> GetCompanyBpdmDetailDataByBusinessPart
legalEntity.LegalShortName ?? "",
physicalPostalAddress?.City ?? "",
physicalPostalAddress?.Street?.Name ?? "",
physicalPostalAddress?.AdministrativeAreaLevel1?.RegionCode,
physicalPostalAddress?.District,
null,
physicalPostalAddress?.Street?.HouseNumber,
physicalPostalAddress?.PostalCode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,9 @@ public async Task GetCompanyBpdmDetailDataByBusinessPartnerNumber_WithValidBpn_R
.With(x => x.Bpna, businessPartnerNumber)
.With(x => x.PhysicalPostalAddress, _fixture.Build<BpdmPhysicalPostalAddress>()
.With(x => x.Country, _fixture.Build<BpdmCountry>().With(x => x.TechnicalKey, country).Create())
.With(x => x.AdministrativeAreaLevel1,
_fixture.Build<BpdmAdministrativeAreaLevel>().With(x => x.RegionCode, region).Create())
.With(x => x.PostalCode, zipCode)
.With(x => x.City, city)
.With(x => x.District, region)
.With(x => x.Street,
_fixture.Build<BpdmStreet>().With(x => x.Name, streetName).With(x => x.HouseNumber, streetNumber)
.Create())
Expand Down

0 comments on commit adf29d3

Please sign in to comment.