Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r39e18750ccb61ad1f367279f9dac39a232d4f843 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 39e18750ccb61ad1f367279f9dac39a232d4f843) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -131,7 +131,7 @@ Assert.AreEqual(4, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var profilesContext = (ForeshoreProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.ForeshoreProfiles, profilesContext.WrappedData); Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionsContext.cs =================================================================== diff -u -r6ef5e439a6d9f40ebd9926251945e0935fbbc314 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionsContext.cs (.../FailureMechanismSectionsContext.cs) (revision 6ef5e439a6d9f40ebd9926251945e0935fbbc314) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionsContext.cs (.../FailureMechanismSectionsContext.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -34,23 +34,23 @@ /// /// Initializes a new instance of the class. /// - /// The failure mechanism to wrap. - /// The owning assessment section of . + /// The failure mechanism to wrap. + /// The owning assessment section of . /// Thrown when any input argument is null. - public FailureMechanismSectionsContext(IFailureMechanism wrappedFailureMechanism, IAssessmentSection assessmentSection) - : base(wrappedFailureMechanism) + public FailureMechanismSectionsContext(IFailureMechanism wrappedData, IAssessmentSection assessmentSection) + : base(wrappedData) { if (assessmentSection == null) { throw new ArgumentNullException(nameof(assessmentSection)); } - ParentAssessmentSection = assessmentSection; + AssessmentSection = assessmentSection; } /// /// Gets the assessment section which the context belongs to. /// - public IAssessmentSection ParentAssessmentSection { get; } + public IAssessmentSection AssessmentSection { get; } } } \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/FailureMechanismSectionsContextTest.cs =================================================================== diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/FailureMechanismSectionsContextTest.cs (.../FailureMechanismSectionsContextTest.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/FailureMechanismSectionsContextTest.cs (.../FailureMechanismSectionsContextTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -64,7 +64,7 @@ // Assert Assert.IsInstanceOf>(context); Assert.AreSame(failureMechanism, context.WrappedData); - Assert.AreSame(assessmentSection, context.ParentAssessmentSection); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocks.VerifyAll(); } Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneErosionFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r827cf33fbb55722d0888ed3a18cef230699fe803 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneErosionFailureMechanismContextTreeNodeInfoTest.cs (.../DuneErosionFailureMechanismContextTreeNodeInfoTest.cs) (revision 827cf33fbb55722d0888ed3a18cef230699fe803) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneErosionFailureMechanismContextTreeNodeInfoTest.cs (.../DuneErosionFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -114,7 +114,7 @@ Assert.AreEqual(2, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var inputComment = (Comment) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.InputComments, inputComment); Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r39e18750ccb61ad1f367279f9dac39a232d4f843 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsFailureMechanismContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision 39e18750ccb61ad1f367279f9dac39a232d4f843) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsFailureMechanismContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -128,7 +128,7 @@ Assert.AreEqual(3, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var dikeProfilesContext = (DikeProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.DikeProfiles, dikeProfilesContext.WrappedData); Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r827cf33fbb55722d0888ed3a18cef230699fe803 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision 827cf33fbb55722d0888ed3a18cef230699fe803) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -195,7 +195,7 @@ Assert.AreEqual(3, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var foreshoreProfilesContext = (ForeshoreProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.ForeshoreProfiles, foreshoreProfilesContext.WrappedData); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r39e18750ccb61ad1f367279f9dac39a232d4f843 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 39e18750ccb61ad1f367279f9dac39a232d4f843) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -132,7 +132,7 @@ Assert.AreEqual(4, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var profilesContext = (ForeshoreProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.ForeshoreProfiles, profilesContext.WrappedData); Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r07d33ffd1d6cb084a06d86717f6d322b4ec040bf -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 07d33ffd1d6cb084a06d86717f6d322b4ec040bf) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -483,9 +483,9 @@ Image = RingtoetsCommonFormsResources.SectionsIcon, FileFilterGenerator = new FileFilterGenerator(RingtoetsCommonIOResources.Shape_file_filter_Extension, RingtoetsCommonIOResources.Shape_file_filter_Description), - IsEnabled = context => context.ParentAssessmentSection.ReferenceLine != null, + IsEnabled = context => context.AssessmentSection.ReferenceLine != null, CreateFileImporter = (context, filePath) => new FailureMechanismSectionsImporter(context.WrappedData, - context.ParentAssessmentSection.ReferenceLine, + context.AssessmentSection.ReferenceLine, filePath) }; yield return new ImportInfo Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/FailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r827cf33fbb55722d0888ed3a18cef230699fe803 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/FailureMechanismContextTreeNodeInfoTest.cs (.../FailureMechanismContextTreeNodeInfoTest.cs) (revision 827cf33fbb55722d0888ed3a18cef230699fe803) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/FailureMechanismContextTreeNodeInfoTest.cs (.../FailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -184,7 +184,7 @@ var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var inputComment = (Comment) inputFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.InputComments, inputComment); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/TreeNodeInfos/MacroStabilityInwardsFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -rf21ec839325d90ce1c5f0d08a8e743ebaf6912dd -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/TreeNodeInfos/MacroStabilityInwardsFailureMechanismContextTreeNodeInfoTest.cs (.../MacroStabilityInwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision f21ec839325d90ce1c5f0d08a8e743ebaf6912dd) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/TreeNodeInfos/MacroStabilityInwardsFailureMechanismContextTreeNodeInfoTest.cs (.../MacroStabilityInwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -145,7 +145,7 @@ Assert.AreEqual(4, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var surfaceLinesContext = (MacroStabilityInwardsSurfaceLinesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.SurfaceLines, surfaceLinesContext.WrappedData); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -rf21ec839325d90ce1c5f0d08a8e743ebaf6912dd -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingFailureMechanismContextTreeNodeInfoTest.cs (.../PipingFailureMechanismContextTreeNodeInfoTest.cs) (revision f21ec839325d90ce1c5f0d08a8e743ebaf6912dd) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingFailureMechanismContextTreeNodeInfoTest.cs (.../PipingFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -160,7 +160,7 @@ Assert.AreEqual(4, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(pipingFailureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var surfaceLinesContext = (PipingSurfaceLinesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(pipingFailureMechanism.SurfaceLines, surfaceLinesContext.WrappedData); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r39e18750ccb61ad1f367279f9dac39a232d4f843 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../StabilityPointStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 39e18750ccb61ad1f367279f9dac39a232d4f843) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../StabilityPointStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -127,7 +127,7 @@ Assert.AreEqual(4, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var profilesContext = (ForeshoreProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.ForeshoreProfiles, profilesContext.WrappedData); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r827cf33fbb55722d0888ed3a18cef230699fe803 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs (.../StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision 827cf33fbb55722d0888ed3a18cef230699fe803) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs (.../StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -195,7 +195,7 @@ Assert.AreEqual(3, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var profilesContext = (ForeshoreProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.ForeshoreProfiles, profilesContext.WrappedData); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r827cf33fbb55722d0888ed3a18cef230699fe803 -r6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision 827cf33fbb55722d0888ed3a18cef230699fe803) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision 6e4bf216d76f52ad3159a6cf1ab3ea38c2f17f28) @@ -212,7 +212,7 @@ Assert.AreEqual(3, inputsFolder.Contents.Count()); var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); - Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); + Assert.AreSame(assessmentSection, failureMechanismSectionsContext.AssessmentSection); var foreshoreProfilesContext = (ForeshoreProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.ForeshoreProfiles, foreshoreProfilesContext.WrappedData);