Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationsContext.cs
===================================================================
diff -u -r8f520bfb676e408cabd22c74a56ad9c2aa1c3089 -r0afddda568d7425aa5701ba21f5e9fd05a7c20b5
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationsContext.cs (.../DesignWaterLevelLocationsContext.cs) (revision 8f520bfb676e408cabd22c74a56ad9c2aa1c3089)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationsContext.cs (.../DesignWaterLevelLocationsContext.cs) (revision 0afddda568d7425aa5701ba21f5e9fd05a7c20b5)
@@ -28,27 +28,24 @@
namespace Ringtoets.Integration.Forms.PresentationObjects
{
///
- /// Presentation object for all data required to configure an enumeration of
+ /// Presentation object for all data required to configure an enumeration of
/// with a design water level calculation result.
///
- public class DesignWaterLevelLocationsContext : ObservableWrappedObjectContextBase>
+ public class DesignWaterLevelLocationsContext : ObservableWrappedObjectContextBase>
{
///
/// Creates a new instance of .
///
- /// The locations that the belongs to.
+ /// The calculations that the belongs to.
/// The that the belongs to.
/// for obtaining the norm to use during calculations.
- /// for obtaining a
- /// based on .
/// The name of the category boundary.
- /// Thrown when , ,
- /// or is null.
+ /// Thrown when , or
+ /// is null.
/// Thrown when is null or empty.
- public DesignWaterLevelLocationsContext(ObservableList wrappedData,
+ public DesignWaterLevelLocationsContext(ObservableList wrappedData,
IAssessmentSection assessmentSection,
Func getNormFunc,
- Func getCalculationFunc,
string categoryBoundaryName)
: base(wrappedData)
{
@@ -62,19 +59,13 @@
throw new ArgumentNullException(nameof(getNormFunc));
}
- if (getCalculationFunc == null)
- {
- throw new ArgumentNullException(nameof(getCalculationFunc));
- }
-
if (string.IsNullOrEmpty(categoryBoundaryName))
{
throw new ArgumentException($"'{nameof(categoryBoundaryName)}' must have a value.");
}
AssessmentSection = assessmentSection;
GetNormFunc = getNormFunc;
- GetCalculationFunc = getCalculationFunc;
CategoryBoundaryName = categoryBoundaryName;
}
@@ -89,17 +80,11 @@
public Func GetNormFunc { get; }
///
- /// Gets the for obtaining a
- /// based on .
- ///
- public Func GetCalculationFunc { get; }
-
- ///
/// Gets the name of the category boundary.
///
public string CategoryBoundaryName { get; }
- public override bool Equals(WrappedObjectContextBase> other)
+ public override bool Equals(WrappedObjectContextBase> other)
{
return base.Equals(other)
&& other is DesignWaterLevelLocationsContext
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationsContext.cs
===================================================================
diff -u -r8f520bfb676e408cabd22c74a56ad9c2aa1c3089 -r0afddda568d7425aa5701ba21f5e9fd05a7c20b5
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationsContext.cs (.../WaveHeightLocationsContext.cs) (revision 8f520bfb676e408cabd22c74a56ad9c2aa1c3089)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationsContext.cs (.../WaveHeightLocationsContext.cs) (revision 0afddda568d7425aa5701ba21f5e9fd05a7c20b5)
@@ -28,27 +28,24 @@
namespace Ringtoets.Integration.Forms.PresentationObjects
{
///
- /// Presentation object for all data required to configure an enumeration of
+ /// Presentation object for all data required to configure an enumeration of
/// with a wave height calculation result.
///
public class WaveHeightLocationsContext : ObservableWrappedObjectContextBase>
{
///
/// Creates a new instance of .
///
- /// The locations that the belongs to.
+ /// The calculations that the belongs to.
/// The that the belongs to.
/// for obtaining the norm to use during calculations.
- /// for obtaining a
- /// based on .
/// The name of the category boundary.
- /// Thrown when , ,
- /// or is null.
+ /// Thrown when , or
+ /// is null.
/// Thrown when is null or empty.
- public WaveHeightLocationsContext(ObservableList wrappedData,
+ public WaveHeightLocationsContext(ObservableList wrappedData,
IAssessmentSection assessmentSection,
Func getNormFunc,
- Func getCalculationFunc,
string categoryBoundaryName)
: base(wrappedData)
{
@@ -62,19 +59,13 @@
throw new ArgumentNullException(nameof(getNormFunc));
}
- if (getCalculationFunc == null)
- {
- throw new ArgumentNullException(nameof(getCalculationFunc));
- }
-
if (string.IsNullOrEmpty(categoryBoundaryName))
{
throw new ArgumentException($"'{nameof(categoryBoundaryName)}' must have a value.");
}
AssessmentSection = assessmentSection;
GetNormFunc = getNormFunc;
- GetCalculationFunc = getCalculationFunc;
CategoryBoundaryName = categoryBoundaryName;
}
@@ -89,12 +80,6 @@
public Func GetNormFunc { get; }
///
- /// Gets the for obtaining a
- /// based on .
- ///
- public Func GetCalculationFunc { get; }
-
- ///
/// Gets the name of the category boundary.
///
public string CategoryBoundaryName { get; }