Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Input/Overtopping/OvertoppingCalculationInput.cs
===================================================================
diff -u -rf6fcb5ceae11a5799ce77d029c2b332838a46aed -r2a896243ca24205f8e98db1b61e8148d1d9b9062
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Input/Overtopping/OvertoppingCalculationInput.cs (.../OvertoppingCalculationInput.cs) (revision f6fcb5ceae11a5799ce77d029c2b332838a46aed)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Input/Overtopping/OvertoppingCalculationInput.cs (.../OvertoppingCalculationInput.cs) (revision 2a896243ca24205f8e98db1b61e8148d1d9b9062)
@@ -59,7 +59,7 @@
/// Creates a new instance of the class.
///
/// The id of the hydraulic boundary location.
- /// The section.
+ /// The normal of the section.
/// The profile points.
/// The foreland points.
/// The break water.
@@ -84,7 +84,8 @@
/// The standard deviation of the exponent model factor shallow.
/// The lower boundary of the exponent model factor shallow.
/// The upper boundary of the exponent model factor shallow.
- public OvertoppingCalculationInput(long hydraulicBoundaryLocationId, HydraRingSection section,
+ public OvertoppingCalculationInput(long hydraulicBoundaryLocationId,
+ double sectionNormal,
IEnumerable profilePoints,
IEnumerable forelandPoints,
HydraRingBreakWater breakWater,
@@ -102,7 +103,7 @@
double exponentModelFactorShallowLowerBoundary, double exponentModelFactorShallowUpperBoundary)
: base(hydraulicBoundaryLocationId)
{
- this.section = section;
+ section = new HydraRingSection(1, double.NaN, sectionNormal);
this.profilePoints = profilePoints;
this.forelandPoints = forelandPoints;
this.breakWater = breakWater;
@@ -129,21 +130,9 @@
this.exponentModelFactorShallowUpperBoundary = exponentModelFactorShallowUpperBoundary;
}
- public override HydraRingFailureMechanismType FailureMechanismType
- {
- get
- {
- return HydraRingFailureMechanismType.DikesOvertopping;
- }
- }
+ public override HydraRingFailureMechanismType FailureMechanismType { get; } = HydraRingFailureMechanismType.DikesOvertopping;
- public override int VariableId
- {
- get
- {
- return 1;
- }
- }
+ public override int VariableId { get; } = 1;
public override HydraRingSection Section
{