Index: Ringtoets/Revetment/test/Ringtoets.Revetment.Service.Test/WaveConditionsCalculationServiceBaseTest.cs =================================================================== diff -u -r0dbfa36e6c561ad33bc12caf2fe76c3e90e37949 -r729cceaff9574ea4e8ad995779bc2829c5245d1d --- Ringtoets/Revetment/test/Ringtoets.Revetment.Service.Test/WaveConditionsCalculationServiceBaseTest.cs (.../WaveConditionsCalculationServiceBaseTest.cs) (revision 0dbfa36e6c561ad33bc12caf2fe76c3e90e37949) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.Service.Test/WaveConditionsCalculationServiceBaseTest.cs (.../WaveConditionsCalculationServiceBaseTest.cs) (revision 729cceaff9574ea4e8ad995779bc2829c5245d1d) @@ -468,7 +468,8 @@ string hcldFilePath = Path.Combine(testDataPath, "HRD ijsselmeer.sqlite"); var calculator = new TestWaveConditionsCosineCalculator(); - int nrOfCalculators = input.WaterLevels.Count(); + RoundedDouble[] waterLevels = input.GetWaterLevels(input.AssessmentLevel).ToArray(); + int nrOfCalculators = waterLevels.Length; var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -486,7 +487,7 @@ // Assert for (var i = 0; i < nrOfCalculators; i++) { - WaveConditionsCosineCalculationInput expectedInput = CreateInput(input.WaterLevels.ElementAt(i), a, b, c, norm, input, useForeshore, false); + WaveConditionsCosineCalculationInput expectedInput = CreateInput(waterLevels[i], a, b, c, norm, input, useForeshore, false); HydraRingDataEqualityHelper.AreEqual(expectedInput, calculator.ReceivedInputs[i]); } } @@ -524,8 +525,10 @@ string hcldFilePath = Path.Combine(testDataPath, "HRD ijsselmeer.sqlite"); var calculator = new TestWaveConditionsCosineCalculator(); - int nrOfCalculators = input.WaterLevels.Count(); + RoundedDouble[] waterLevels = input.GetWaterLevels(input.AssessmentLevel).ToArray(); + int nrOfCalculators = waterLevels.Length; + var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); calculatorFactory.Expect(cf => cf.CreateWaveConditionsCosineCalculator(testDataPath, validPreprocessorDirectory)) @@ -542,7 +545,7 @@ // Assert for (var i = 0; i < nrOfCalculators; i++) { - WaveConditionsCosineCalculationInput expectedInput = CreateInput(input.WaterLevels.ElementAt(i), a, b, c, norm, input, true, true); + WaveConditionsCosineCalculationInput expectedInput = CreateInput(waterLevels[i], a, b, c, norm, input, true, true); HydraRingDataEqualityHelper.AreEqual(expectedInput, calculator.ReceivedInputs[i]); } } @@ -577,7 +580,7 @@ string hcldFilePath = Path.Combine(testDataPath, "HRD ijsselmeer.sqlite"); var calculator = new TestWaveConditionsCosineCalculator(); - int nrOfCalculators = input.WaterLevels.Count(); + int nrOfCalculators = input.GetWaterLevels(input.AssessmentLevel).Count(); var mockRepository = new MockRepository(); var calculatorFactory = mockRepository.StrictMock(); @@ -622,7 +625,7 @@ LowerBoundaryRevetment = waterLevelLowerBoundaryRevetment }; - int nrOfCalculators = input.WaterLevels.Count(); + int nrOfCalculators = input.GetWaterLevels(input.AssessmentLevel).Count(); var calculatorThatFails = new TestWaveConditionsCosineCalculator {