-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: or-1716 implement beheer historiek for correctie dubbels
- Loading branch information
Showing
8 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
src/AssociationRegistry/Events/AanvaardingDubbeleVerenigingWerdGecorrigeerd.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...t.Projections/Beheer/Historiek/Dubbels/Given_MarkeringDubbeleVerengingWerdGecorrigeerd.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace AssociationRegistry.Test.Projections.Beheer.Historiek.Dubbels; | ||
|
||
using Admin.Schema.Historiek; | ||
using Events; | ||
|
||
[Collection(nameof(ProjectionContext))] | ||
public class Given_MarkeringDubbeleVerenigingWerdGecorrigeerd(BeheerHistoriekScenarioFixture<MarkeringDubbeleVerengingWerdGecorrigeerdScenario> fixture) | ||
: BeheerHistoriekScenarioClassFixture<MarkeringDubbeleVerengingWerdGecorrigeerdScenario> | ||
{ | ||
[Fact] | ||
public void Metadata_Is_Updated() | ||
=> fixture.Result | ||
.Metadata.Version.Should().Be(3); | ||
|
||
[Fact] | ||
public void Document_Is_Updated() | ||
=> fixture.Result | ||
.Gebeurtenissen.Last() | ||
.Should().BeEquivalentTo(new BeheerVerenigingHistoriekGebeurtenis( | ||
Beschrijving: $"Markering dubbel van vereniging {fixture.Scenario.AuthentiekeVerenigingWerdGeregistreerd.VCode} werd gecorrigeerd.", | ||
nameof(MarkeringDubbeleVerengingWerdGecorrigeerd), | ||
new | ||
{ | ||
VCode = fixture.Scenario.VCode, | ||
VCodeAuthentiekeVereniging = fixture.Scenario.AuthentiekeVerenigingWerdGeregistreerd.VCode, | ||
}, | ||
fixture.MetadataInitiator, | ||
fixture.MetadataTijdstip)); | ||
} |
29 changes: 29 additions & 0 deletions
29
...jections/Beheer/Historiek/Dubbels/Given_VerenigingAanvaarddeCorrectieDubbeleVereniging.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace AssociationRegistry.Test.Projections.Beheer.Historiek.Dubbels; | ||
|
||
using Admin.Schema.Historiek; | ||
using Events; | ||
|
||
[Collection(nameof(ProjectionContext))] | ||
public class Given_VerenigingAanvaarddeCorrectieDubbeleVereniging(BeheerHistoriekScenarioFixture<VerenigingAanvaarddeCorrectieDubbeleVerenigingScenario> fixture) | ||
: BeheerHistoriekScenarioClassFixture<VerenigingAanvaarddeCorrectieDubbeleVerenigingScenario> | ||
{ | ||
[Fact] | ||
public void Metadata_Is_Updated() | ||
=> fixture.Result | ||
.Metadata.Version.Should().Be(3); | ||
|
||
[Fact] | ||
public void Document_Is_Updated() | ||
=> fixture.Result | ||
.Gebeurtenissen.Last() | ||
.Should().BeEquivalentTo(new BeheerVerenigingHistoriekGebeurtenis( | ||
Beschrijving: $"Authentieke vereniging aanvaardde de correctie van dubbele vereniging {fixture.Scenario.DubbeleVerenigingWerdGeregistreerd.VCode}.", | ||
nameof(VerenigingAanvaarddeCorrectieDubbeleVereniging), | ||
new | ||
{ | ||
VCode = fixture.Scenario.VCode, | ||
VCodeDubbeleVereniging = fixture.Scenario.DubbeleVerenigingWerdGeregistreerd.VCode, | ||
}, | ||
fixture.MetadataInitiator, | ||
fixture.MetadataTijdstip)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters