Skip to content

Commit

Permalink
feat: or-2535 remove legal ent type when decoupled
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu committed Sep 24, 2024
1 parent dd0f15c commit fe0b8d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public async Task<IElasticChange> Handle(
document.Name = message.Body.NameBeforeKboCoupling;
document.ShortName = message.Body.ShortNameBeforeKboCoupling;
document.LegalEntityType = null;
document.KboNumber = string.Empty;
}
).ToAsyncResult();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ await _eventProcessor.Handle<OrganisationDocument>(
organisation.Source.Validity.Start.Should().Be(organisationCreated.ValidFrom);
organisation.Source.KboNumber.Should().Be(coupledWithKbo.KboNumber);
organisation.Source.Validity.End.Should().Be(organisationValidity);
organisation.Source.LegalEntityType.Should().BeNull();
}

[Fact]
Expand Down

0 comments on commit fe0b8d2

Please sign in to comment.