Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Factories/ExportableMacroStabilityInwardsFailureMechanismFactory.cs =================================================================== diff -u -r8d562013693d45aabc690abbe6673a8db8bd10c0 -r80ea1805f5f517b9723f9195e8674cb2bc8f3b9f --- Ringtoets/Integration/src/Ringtoets.Integration.IO/Factories/ExportableMacroStabilityInwardsFailureMechanismFactory.cs (.../ExportableMacroStabilityInwardsFailureMechanismFactory.cs) (revision 8d562013693d45aabc690abbe6673a8db8bd10c0) +++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Factories/ExportableMacroStabilityInwardsFailureMechanismFactory.cs (.../ExportableMacroStabilityInwardsFailureMechanismFactory.cs) (revision 80ea1805f5f517b9723f9195e8674cb2bc8f3b9f) @@ -4,7 +4,6 @@ using Ringtoets.AssemblyTool.Data; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Exceptions; -using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Integration.IO.Assembly; using Ringtoets.MacroStabilityInwards.Data; @@ -44,14 +43,16 @@ Dictionary failureMechanismSectionsLookup = failureMechanism.SectionResults - .ToDictionary(s => s, sectionResult => CreateExportableFailureMechanismSection(sectionResult.Section)); + .ToDictionary(sectionResult => sectionResult, + sectionResult => + ExportableFailureMechanismSectionFactory.CreateExportableFailureMechanismSection(sectionResult.Section)); return new ExportableFailureMechanism( new ExportableFailureMechanismAssemblyResultWithProbability(ExportableAssemblyMethod.WBI1B1, failureMechanismAssembly.Group, failureMechanismAssembly.Probability), failureMechanismSectionsLookup.Values, CreateExportableMacroStabilityInwardsFailureMechanismSectionResults(failureMechanismSectionsLookup, - failureMechanism, + failureMechanism, assessmentSection), ExportableFailureMechanismType.STBI, ExportableFailureMechanismGroup.Group2); @@ -108,10 +109,5 @@ return exportableResults; } - - private static ExportableFailureMechanismSection CreateExportableFailureMechanismSection(FailureMechanismSection failureMechanismSection) - { - return new ExportableFailureMechanismSection(failureMechanismSection.Points, double.NaN, double.NaN); - } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Factories/ExportablePipingFailureMechanismFactory.cs =================================================================== diff -u -r8d562013693d45aabc690abbe6673a8db8bd10c0 -r80ea1805f5f517b9723f9195e8674cb2bc8f3b9f --- Ringtoets/Integration/src/Ringtoets.Integration.IO/Factories/ExportablePipingFailureMechanismFactory.cs (.../ExportablePipingFailureMechanismFactory.cs) (revision 8d562013693d45aabc690abbe6673a8db8bd10c0) +++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Factories/ExportablePipingFailureMechanismFactory.cs (.../ExportablePipingFailureMechanismFactory.cs) (revision 80ea1805f5f517b9723f9195e8674cb2bc8f3b9f) @@ -4,7 +4,6 @@ using Ringtoets.AssemblyTool.Data; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Exceptions; -using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Integration.IO.Assembly; using Ringtoets.Piping.Data; @@ -44,14 +43,15 @@ Dictionary failureMechanismSectionsLookup = failureMechanism.SectionResults - .ToDictionary(s => s, sectionResult => CreateExportableFailureMechanismSection(sectionResult.Section)); + .ToDictionary(sectionResult => sectionResult, + sectionResult => ExportableFailureMechanismSectionFactory.CreateExportableFailureMechanismSection(sectionResult.Section)); return new ExportableFailureMechanism( new ExportableFailureMechanismAssemblyResultWithProbability(ExportableAssemblyMethod.WBI1B1, failureMechanismAssembly.Group, failureMechanismAssembly.Probability), failureMechanismSectionsLookup.Values, CreateExportablePipingFailureMechanismSectionResults(failureMechanismSectionsLookup, - failureMechanism, + failureMechanism, assessmentSection), ExportableFailureMechanismType.STPH, ExportableFailureMechanismGroup.Group2); @@ -107,10 +107,5 @@ return exportableResults; } - - private static ExportableFailureMechanismSection CreateExportableFailureMechanismSection(FailureMechanismSection failureMechanismSection) - { - return new ExportableFailureMechanismSection(failureMechanismSection.Points, double.NaN, double.NaN); - } } } \ No newline at end of file