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