Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PresentationObjects/GrassCoverErosionInwardsInputContext.cs
===================================================================
diff -u -r11e4cd9d892da070b3374027f419d2abc3ea4df9 -r3ad207bb5357e66e7c8dff2c348ab8b384d520ce
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PresentationObjects/GrassCoverErosionInwardsInputContext.cs (.../GrassCoverErosionInwardsInputContext.cs) (revision 11e4cd9d892da070b3374027f419d2abc3ea4df9)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PresentationObjects/GrassCoverErosionInwardsInputContext.cs (.../GrassCoverErosionInwardsInputContext.cs) (revision 3ad207bb5357e66e7c8dff2c348ab8b384d520ce)
@@ -34,14 +34,14 @@
///
/// The grass cover erosion inwards input instance wrapped by this context object.
/// The calculation item the belongs to.
- /// The failure mechanism which the context belongs to.
+ /// The failure mechanism which the context belongs to.
/// The assessment section which the context belongs to.
/// Thrown when any input parameter is null.
public GrassCoverErosionInwardsInputContext(GrassCoverErosionInwardsInput input,
ICalculation calculation,
- GrassCoverErosionInwardsFailureMechanism grassCoverErosionInwardsFailureMechanism,
+ GrassCoverErosionInwardsFailureMechanism failureMechanism,
IAssessmentSection assessmentSection)
- : base(input, assessmentSection)
+ : base(input, failureMechanism, assessmentSection)
{
if (calculation == null)
{
@@ -50,27 +50,13 @@
throw new ArgumentNullException("calculation", message);
}
- if (grassCoverErosionInwardsFailureMechanism == null)
- {
- var message = String.Format(Resources.GrassCoverErosionInwardsContext_AssertInputsAreNotNull_DataDescription_0_cannot_be_null,
- Resources.GrassCoverErosionInwardsContext_DataDescription_GrassCoverErosionInwardsFailureMechanism);
- throw new ArgumentNullException("grassCoverErosionInwardsFailureMechanism", message);
- }
-
Calculation = calculation;
-
- GrassCoverErosionInwardsFailureMechanism = grassCoverErosionInwardsFailureMechanism;
}
///
/// Gets the calculation item which the context belongs to.
///
public ICalculation Calculation { get; private set; }
-
- ///
- /// Gets the failure mechanism which the context belongs to.
- ///
- public GrassCoverErosionInwardsFailureMechanism GrassCoverErosionInwardsFailureMechanism { get; private set; }
}
}
\ No newline at end of file