Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs =================================================================== diff -u -r755360927a67d206d503b10e0d4c40d5426c4a3b -rc9cee4b6d3ce28471a0054fa2bce21ce9e4c60f8 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs (.../AssessmentSectionEntityReadExtensionsTest.cs) (revision 755360927a67d206d503b10e0d4c40d5426c4a3b) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs (.../AssessmentSectionEntityReadExtensionsTest.cs) (revision c9cee4b6d3ce28471a0054fa2bce21ce9e4c60f8) @@ -643,14 +643,16 @@ const string profileAId = "profileA"; const string profileBId = "profileB"; + const string fileLocation = "some/location"; var failureMechanismEntity = new FailureMechanismEntity { FailureMechanismType = (int) FailureMechanismType.GrassRevetmentErosionOutwards, GrassCoverErosionOutwardsFailureMechanismMetaEntities = { new GrassCoverErosionOutwardsFailureMechanismMetaEntity { - N = 2 + N = 2, + ForeshoreProfileCollectionSourcePath = fileLocation } }, CalculationGroupEntity = new CalculationGroupEntity(), @@ -680,6 +682,7 @@ // Assert ForeshoreProfileCollection foreshoreProfiles = section.GrassCoverErosionOutwards.ForeshoreProfiles; + Assert.AreEqual(fileLocation, foreshoreProfiles.SourcePath); CollectionAssert.AreEqual(new[] { profileBId, @@ -705,7 +708,11 @@ IsRelevant = Convert.ToByte(isRelevant), InputComments = inputComments, OutputComments = outputComments, - NotRelevantComments = notRelevantComments + NotRelevantComments = notRelevantComments, + StabilityStoneCoverFailureMechanismMetaEntities = + { + new StabilityStoneCoverFailureMechanismMetaEntity() + } }; entity.FailureMechanismEntities.Add(failureMechanismEntity); entity.BackgroundDataEntities.Add(CreateBackgroundDataEntity()); @@ -744,6 +751,10 @@ Order = 1 } } + }, + StabilityStoneCoverFailureMechanismMetaEntities = + { + new StabilityStoneCoverFailureMechanismMetaEntity() } }; entity.FailureMechanismEntities.Add(failureMechanismEntity); @@ -769,6 +780,8 @@ const string profileAId = "profileA"; const string profileBId = "profileB"; + const string fileLocation = "some/file/location"; + var failureMechanismEntity = new FailureMechanismEntity { FailureMechanismType = (int) FailureMechanismType.StabilityStoneRevetment, @@ -788,6 +801,13 @@ GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) } }, + StabilityStoneCoverFailureMechanismMetaEntities = + { + new StabilityStoneCoverFailureMechanismMetaEntity + { + ForeshoreProfileCollectionSourcePath = fileLocation + } + }, IsRelevant = Convert.ToByte(isRelevant) }; entity.FailureMechanismEntities.Add(failureMechanismEntity); @@ -800,6 +820,7 @@ // Assert ForeshoreProfileCollection foreshoreProfiles = section.StabilityStoneCover.ForeshoreProfiles; + Assert.AreEqual(fileLocation, foreshoreProfiles.SourcePath); CollectionAssert.AreEqual(new[] { profileBId, @@ -825,7 +846,11 @@ IsRelevant = Convert.ToByte(isRelevant), InputComments = inputComments, OutputComments = outputComments, - NotRelevantComments = notRelevantComments + NotRelevantComments = notRelevantComments, + WaveImpactAsphaltCoverFailureMechanismMetaEntities = + { + new WaveImpactAsphaltCoverFailureMechanismMetaEntity() + } }; entity.FailureMechanismEntities.Add(failureMechanismEntity); entity.BackgroundDataEntities.Add(CreateBackgroundDataEntity()); @@ -850,6 +875,8 @@ const string profileAId = "profileA"; const string profileBId = "profileB"; + const string fileLocation = "some/location"; + var failureMechanismEntity = new FailureMechanismEntity { FailureMechanismType = (int) FailureMechanismType.WaveImpactOnAsphaltRevetment, @@ -868,6 +895,13 @@ Id = profileBId, GeometryXml = new Point2DXmlSerializer().ToXml(Enumerable.Empty()) } + }, + WaveImpactAsphaltCoverFailureMechanismMetaEntities = + { + new WaveImpactAsphaltCoverFailureMechanismMetaEntity + { + ForeshoreProfileCollectionSourcePath = fileLocation + } } }; entity.FailureMechanismEntities.Add(failureMechanismEntity); @@ -880,6 +914,7 @@ // Assert ForeshoreProfileCollection foreshoreProfiles = section.WaveImpactAsphaltCover.ForeshoreProfiles; + Assert.AreEqual(fileLocation, foreshoreProfiles.SourcePath); CollectionAssert.AreEqual(new[] { profileBId, @@ -909,6 +944,10 @@ Order = 1 } } + }, + WaveImpactAsphaltCoverFailureMechanismMetaEntities = + { + new WaveImpactAsphaltCoverFailureMechanismMetaEntity() } }; entity.FailureMechanismEntities.Add(failureMechanismEntity);