Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanismExtensions.cs
===================================================================
diff -u -r9bb285c6eb5b2ed43bf4293caa51baa5175b7080 -r8a3d8f25e6cea125fda6783db41e88aca1864ba7
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanismExtensions.cs (.../GrassCoverErosionOutwardsFailureMechanismExtensions.cs) (revision 9bb285c6eb5b2ed43bf4293caa51baa5175b7080)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanismExtensions.cs (.../GrassCoverErosionOutwardsFailureMechanismExtensions.cs) (revision 8a3d8f25e6cea125fda6783db41e88aca1864ba7)
@@ -25,7 +25,6 @@
using System.Linq;
using Core.Common.Base.Data;
using Ringtoets.Common.Data.AssessmentSection;
-using Ringtoets.Common.Data.Contribution;
using Ringtoets.Common.Data.FailureMechanism;
using Ringtoets.Common.Data.Hydraulics;
@@ -37,66 +36,6 @@
public static class GrassCoverErosionOutwardsFailureMechanismExtensions
{
///
- /// Gets the normative assessment level for a .
- ///
- /// The assessment section to get the normative assessment level from.
- /// The failure mechanism to get the normative assessment level from.
- /// The hydraulic boundary location to get the normative assessment level for.
- /// The normative assessment level or when:
- ///
- /// - is null;
- /// - is not part of ;
- /// - is not part of ;
- /// - contains no corresponding calculation output.
- ///
- ///
- /// Thrown when
- /// or is null.
- /// Thrown when
- /// contains an invalid value of .
- /// Thrown when
- /// contains a valid value of , but unsupported.
- public static RoundedDouble GetNormativeAssessmentLevel(this GrassCoverErosionOutwardsFailureMechanism failureMechanism,
- IAssessmentSection assessmentSection,
- HydraulicBoundaryLocation hydraulicBoundaryLocation)
- {
- if (failureMechanism == null)
- {
- throw new ArgumentNullException(nameof(failureMechanism));
- }
-
- if (assessmentSection == null)
- {
- throw new ArgumentNullException(nameof(assessmentSection));
- }
-
- NormType normType = assessmentSection.FailureMechanismContribution.NormativeNorm;
-
- if (!Enum.IsDefined(typeof(NormType), normType))
- {
- throw new InvalidEnumArgumentException(nameof(normType),
- (int) normType,
- typeof(NormType));
- }
-
- IEnumerable calculations;
-
- switch (normType)
- {
- case NormType.Signaling:
- calculations = failureMechanism.WaterLevelCalculationsForMechanismSpecificSignalingNorm;
- break;
- case NormType.LowerLimit:
- calculations = failureMechanism.WaterLevelCalculationsForMechanismSpecificLowerLimitNorm;
- break;
- default:
- throw new NotSupportedException();
- }
-
- return GetAssessmentLevelFromCalculations(hydraulicBoundaryLocation, calculations);
- }
-
- ///
/// Gets the assessment level for a based on .
///
/// The assessment section to get the assessment level from.