Skip to content

Commit

Permalink
fix: restore snapshot streetname isrenamed
Browse files Browse the repository at this point in the history
  • Loading branch information
jvandaal authored and ArneD committed Apr 25, 2024
1 parent 6fe4b3f commit aac4dcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public void RestoreSnapshot(MunicipalityId municipalityId, StreetNameData street
PersistentLocalId = new PersistentLocalId(streetNameData.StreetNamePersistentLocalId);
Status = streetNameData.Status;
IsRemoved = streetNameData.IsRemoved;
IsRenamed = streetNameData.IsRenamed;

Names = new Names(streetNameData.Names);
HomonymAdditions = new HomonymAdditions(streetNameData.HomonymAdditions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public RestoreMunicipalityFromSnapshotStoreTests(ITestOutputHelper testOutputHel
fixture.Create<StreetNameStatus>(),
new Names(fixture.Create<IDictionary<Language, string>>()),
new HomonymAdditions(fixture.Create<List<StreetNameHomonymAddition>>()),
fixture.Create<bool>(),
fixture.Create<bool>(),
true,
true,
fixture.Create<StreetNameId?>(),
fixture.Create<string>(),
fixture.Create<ProvenanceData>()))
Expand Down Expand Up @@ -119,8 +119,8 @@ public void ThenAggregateStreetNamesStateAreExpected()
snapshotStreetName.Should().NotBeNull();

streetName.Status.Should().Be(snapshotStreetName!.Status);
streetName.IsRemoved.Should().Be(snapshotStreetName.IsRemoved);
streetName.IsRenamed.Should().Be(snapshotStreetName.IsRenamed);
streetName.IsRemoved.Should().BeTrue();
streetName.IsRenamed.Should().BeTrue();
streetName.Names.Should().BeEquivalentTo(new Names(snapshotStreetName.Names));
streetName.HomonymAdditions.Should().BeEquivalentTo(new HomonymAdditions(snapshotStreetName.HomonymAdditions));

Expand Down

0 comments on commit aac4dcc

Please sign in to comment.