Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismContext.cs =================================================================== diff -u -r1d1714a744afa41c6da4d755e44d16f4dca7a355 -r438a524144f283209902ae89f058a134380c9538 --- Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismContext.cs (.../FailureMechanismContext.cs) (revision 1d1714a744afa41c6da4d755e44d16f4dca7a355) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismContext.cs (.../FailureMechanismContext.cs) (revision 438a524144f283209902ae89f058a134380c9538) @@ -40,7 +40,10 @@ public FailureMechanismContext(T wrappedFailureMechanism, IAssessmentSection parent) : base(wrappedFailureMechanism) { - AssertInputsAreNotNull(parent); + if (parent == null) + { + throw new ArgumentNullException("parent"); + } Parent = parent; } @@ -49,13 +52,5 @@ /// Gets the parent of . /// public IAssessmentSection Parent { get; private set; } - - private void AssertInputsAreNotNull(IAssessmentSection parent) - { - if (parent == null) - { - throw new ArgumentNullException("parent", "The assessment section cannot be null."); - } - } } } \ No newline at end of file