Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs =================================================================== diff -u -r31012b85637f7fcf6b28f498fc996edcda2eb505 -rd34720bc7fe019afec92b91f017b56618dafa95d --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs (.../AssessmentSectionEntityReadExtensionsTest.cs) (revision 31012b85637f7fcf6b28f498fc996edcda2eb505) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs (.../AssessmentSectionEntityReadExtensionsTest.cs) (revision d34720bc7fe019afec92b91f017b56618dafa95d) @@ -652,8 +652,8 @@ // Setup var entity = CreateAssessmentSectionEntity(); - var profileAName = "profileA"; - var profileBName = "profileB"; + var profileAId = "profileA"; + var profileBId = "profileB"; var failureMechanismEntity = new FailureMechanismEntity { FailureMechanismType = (int) FailureMechanismType.GrassRevetmentErosionOutwards, @@ -670,13 +670,13 @@ new ForeshoreProfileEntity { Order = 1, - Name = profileAName, + Id = profileAId, GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) }, new ForeshoreProfileEntity { Order = 0, - Name = profileBName, + Id = profileBId, GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) } } @@ -693,9 +693,9 @@ ObservableList foreshoreProfiles = section.GrassCoverErosionOutwards.ForeshoreProfiles; CollectionAssert.AreEqual(new[] { - profileBName, - profileAName - }, foreshoreProfiles.Select(fp => fp.Name)); + profileBId, + profileAId + }, foreshoreProfiles.Select(fp => fp.Id)); } [Test] @@ -778,8 +778,8 @@ // Setup var entity = CreateAssessmentSectionEntity(); - var profileAName = "profileA"; - var profileBName = "profileB"; + var profileAId = "profileA"; + var profileBId = "profileB"; var failureMechanismEntity = new FailureMechanismEntity { FailureMechanismType = (int) FailureMechanismType.StabilityStoneRevetment, @@ -789,13 +789,13 @@ new ForeshoreProfileEntity { Order = 1, - Name = profileAName, + Id = profileAId, GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) }, new ForeshoreProfileEntity { Order = 0, - Name = profileBName, + Id = profileBId, GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) } }, @@ -813,9 +813,9 @@ ObservableList foreshoreProfiles = section.StabilityStoneCover.ForeshoreProfiles; CollectionAssert.AreEqual(new[] { - profileBName, - profileAName - }, foreshoreProfiles.Select(fp => fp.Name)); + profileBId, + profileAId + }, foreshoreProfiles.Select(fp => fp.Id)); } [Test] @@ -859,8 +859,8 @@ // Setup var entity = CreateAssessmentSectionEntity(); - var profileAName = "profileA"; - var profileBName = "profileB"; + var profileAId = "profileA"; + var profileBId = "profileB"; var failureMechanismEntity = new FailureMechanismEntity { FailureMechanismType = (int) FailureMechanismType.WaveImpactOnAsphaltRevetment, @@ -870,13 +870,13 @@ new ForeshoreProfileEntity { Order = 1, - Name = profileAName, + Id = profileAId, GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) }, new ForeshoreProfileEntity { Order = 0, - Name = profileBName, + Id = profileBId, GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) } } @@ -893,9 +893,9 @@ ObservableList foreshoreProfiles = section.WaveImpactAsphaltCover.ForeshoreProfiles; CollectionAssert.AreEqual(new[] { - profileBName, - profileAName - }, foreshoreProfiles.Select(fp => fp.Name)); + profileBId, + profileAId + }, foreshoreProfiles.Select(fp => fp.Id)); } [Test]