Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs =================================================================== diff -u -rec5eeafbbd987b02a9d9c07b7e920c03d567f3f7 -rc4dea2087c07b556bd689be5974b7f36351c31d5 --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs (.../PipingInputContext.cs) (revision ec5eeafbbd987b02a9d9c07b7e920c03d567f3f7) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs (.../PipingInputContext.cs) (revision c4dea2087c07b556bd689be5974b7f36351c31d5) @@ -51,7 +51,7 @@ IEnumerable stochasticSoilModels, PipingFailureMechanism pipingFailureMechanism, IAssessmentSection assessmentSection) - : base(pipingInput, surfaceLines, stochasticSoilModels, assessmentSection) + : base(pipingInput, surfaceLines, stochasticSoilModels, pipingFailureMechanism, assessmentSection) { if (calculation == null) { @@ -60,26 +60,13 @@ throw new ArgumentNullException("calculation", message); } - if (pipingFailureMechanism == null) - { - var message = String.Format(Resources.PipingContext_AssertInputsAreNotNull_DataDescription_0_cannot_be_null, - Resources.PipingContext_DataDescription_PipingFailureMechanism); - throw new ArgumentNullException("pipingFailureMechanism", message); - } - PipingCalculation = calculation; - PipingFailureMechanism = pipingFailureMechanism; } /// /// Gets the calculation scenario which the piping context belongs to. /// public PipingCalculationScenario PipingCalculation { get; private set; } - - /// - /// Gets the failure mechanism which the piping context belongs to. - /// - public PipingFailureMechanism PipingFailureMechanism { get; private set; } } } \ No newline at end of file