Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Integration.Test/GrassCoverErosionOutwardsWaveConditionsCalculationActivityIntegrationTest.cs =================================================================== diff -u -r0f4f01f490bf62e20c119ef3eb015385c0bdcf9d -r84e9d27d2d538fcfd5d5a6c1198486b1d37c2058 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Integration.Test/GrassCoverErosionOutwardsWaveConditionsCalculationActivityIntegrationTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationActivityIntegrationTest.cs) (revision 0f4f01f490bf62e20c119ef3eb015385c0bdcf9d) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Integration.Test/GrassCoverErosionOutwardsWaveConditionsCalculationActivityIntegrationTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationActivityIntegrationTest.cs) (revision 84e9d27d2d538fcfd5d5a6c1198486b1d37c2058) @@ -151,7 +151,7 @@ failureMechanism, assessmentSection); - RoundedDouble[] waterLevels = GetWaterLevels(calculation, assessmentSection).ToArray(); + RoundedDouble[] waterLevels = GetWaterLevels(calculation, failureMechanism, assessmentSection).ToArray(); int nrOfCalculators = waterLevels.Length; var mockRepository = new MockRepository(); @@ -202,7 +202,7 @@ var waveConditionsCosineCalculator = new TestWaveConditionsCosineCalculator(); - RoundedDouble[] waterLevels = GetWaterLevels(calculation, assessmentSection).ToArray(); + RoundedDouble[] waterLevels = GetWaterLevels(calculation, failureMechanism, assessmentSection).ToArray(); int nrOfCalculators = waterLevels.Length; var mockRepository = new MockRepository(); @@ -285,7 +285,7 @@ TestHelper.AssertLogMessages(() => activity.Run(), messages => { string[] msgs = messages.ToArray(); - RoundedDouble firstWaterLevel = GetWaterLevels(calculation, assessmentSection).First(); + RoundedDouble firstWaterLevel = GetWaterLevels(calculation, failureMechanism, assessmentSection).First(); Assert.AreEqual(8, msgs.Length); Assert.AreEqual($"Golfcondities berekenen voor '{calculation.Name}' is gestart.", msgs[0]); @@ -361,7 +361,7 @@ failureMechanism, assessmentSection); - int nrOfCalculators = GetWaterLevels(calculation, assessmentSection).Count(); + int nrOfCalculators = GetWaterLevels(calculation, failureMechanism, assessmentSection).Count(); var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -403,7 +403,7 @@ LastErrorFileContent = lastErrorFileContent }; - int nrOfCalculators = GetWaterLevels(calculation, assessmentSection).Count(); + int nrOfCalculators = GetWaterLevels(calculation, failureMechanism, assessmentSection).Count(); var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -450,7 +450,7 @@ LastErrorFileContent = lastErrorFileContent }; - int nrOfCalculators = GetWaterLevels(calculation, assessmentSection).Count(); + int nrOfCalculators = GetWaterLevels(calculation, failureMechanism, assessmentSection).Count(); var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -485,7 +485,7 @@ validFilePath, failureMechanism, assessmentSection); - int nrOfCalculators = GetWaterLevels(calculation, assessmentSection).Count(); + int nrOfCalculators = GetWaterLevels(calculation, failureMechanism, assessmentSection).Count(); var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -522,7 +522,7 @@ validFilePath, failureMechanism, assessmentSection); - int nrOfCalculators = GetWaterLevels(calculation, assessmentSection).Count(); + int nrOfCalculators = GetWaterLevels(calculation, failureMechanism, assessmentSection).Count(); var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -559,7 +559,7 @@ validFilePath, failureMechanism, assessmentSection); - int nrOfCalculators = GetWaterLevels(calculation, assessmentSection).Count(); + int nrOfCalculators = GetWaterLevels(calculation, failureMechanism, assessmentSection).Count(); var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -629,10 +629,10 @@ } private static IEnumerable GetWaterLevels(GrassCoverErosionOutwardsWaveConditionsCalculation calculation, + GrassCoverErosionOutwardsFailureMechanism failureMechanism, IAssessmentSection assessmentSection) { - return calculation.InputParameters.GetWaterLevels(assessmentSection.WaterLevelCalculationsForLowerLimitNorm.First().Output?.Result - ?? RoundedDouble.NaN); + return calculation.InputParameters.GetWaterLevels(failureMechanism.GetNormativeAssessmentLevel(assessmentSection, calculation.InputParameters.HydraulicBoundaryLocation)); } } } \ No newline at end of file