Index: Ringtoets/Common/src/Ringtoets.Common.Service/WaveHeightCalculationService.cs
===================================================================
diff -u -r5cdaf6a62202805aa0abe5636e372a66b1bec723 -r75ac52f6f7e203e77dd212e6c32d68e7e58c28b2
--- Ringtoets/Common/src/Ringtoets.Common.Service/WaveHeightCalculationService.cs (.../WaveHeightCalculationService.cs) (revision 5cdaf6a62202805aa0abe5636e372a66b1bec723)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/WaveHeightCalculationService.cs (.../WaveHeightCalculationService.cs) (revision 75ac52f6f7e203e77dd212e6c32d68e7e58c28b2)
@@ -43,10 +43,10 @@
/// Performs validation of the values in the given . Error information is logged during
/// the execution of the operation.
///
- /// The for which to validate the values.
+ /// The for which to validate the values.
/// The HLCD file that should be used for performing the calculation.
/// False if the connection to contains validation errors; True otherwise.
- internal static bool Validate(HydraulicBoundaryLocation hydraulicBoundaryLocation, string hydraulicBoundaryDatabaseFilePath)
+ internal static bool Validate(IHydraulicBoundaryLocation hydraulicBoundaryLocation, string hydraulicBoundaryDatabaseFilePath)
{
var calculationName = string.Format(Resources.WaveHeightCalculationService_Name_Wave_height_for_location_0_, hydraulicBoundaryLocation.Name);
CalculationServiceHelper.LogValidationBeginTime(calculationName);
@@ -66,16 +66,16 @@
}
///
- /// Performs a wave height calculation based on the supplied and returns the result
+ /// Performs a wave height calculation based on the supplied and returns the result
/// if the calculation was successful. Error and status information is logged during the execution of the operation.
///
- /// The to perform the calculation for.
+ /// The to perform the calculation for.
/// The HLCD file that should be used for performing the calculation.
/// The id of the ring to perform the calculation for.
/// The norm to use during the calculation.
/// A on a successful calculation, null otherwise.
- internal static ReliabilityIndexCalculationOutput Calculate(HydraulicBoundaryLocation hydraulicBoundaryLocation, string hydraulicBoundaryDatabaseFilePath,
- string ringId, int norm)
+ internal static ReliabilityIndexCalculationOutput Calculate(IHydraulicBoundaryLocation hydraulicBoundaryLocation, string hydraulicBoundaryDatabaseFilePath,
+ string ringId, double norm)
{
var hlcdDirectory = Path.GetDirectoryName(hydraulicBoundaryDatabaseFilePath);
var input = CreateInput(hydraulicBoundaryLocation, norm);
@@ -110,7 +110,7 @@
}
}
- private static WaveHeightCalculationInput CreateInput(HydraulicBoundaryLocation hydraulicBoundaryLocation, int norm)
+ private static WaveHeightCalculationInput CreateInput(IHydraulicBoundaryLocation hydraulicBoundaryLocation, double norm)
{
return new WaveHeightCalculationInput(1, hydraulicBoundaryLocation.Id, norm);
}