Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs =================================================================== diff -u -rb44468e1681ccff52663d633b434b58cbef2cb23 -r3969f9ae596a0a0ba7460f6f615d4cf89a7a73e3 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs (.../WaveConditionsInputViewInfoTest.cs) (revision b44468e1681ccff52663d633b434b58cbef2cb23) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs (.../WaveConditionsInputViewInfoTest.cs) (revision 3969f9ae596a0a0ba7460f6f615d4cf89a7a73e3) @@ -36,6 +36,7 @@ using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.GrassCoverErosionOutwards.Data; using Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects; +using Ringtoets.GrassCoverErosionOutwards.Util.TestUtil; using Ringtoets.Integration.Data; using Ringtoets.Revetment.Data; using Ringtoets.Revetment.Data.TestUtil; @@ -512,31 +513,26 @@ private static IEnumerable GetInputContextDatasWithExpectedAssessmentLevel() { - const double assessmentLevel1 = 1.1; - const double assessmentLevel2 = 2.2; + const double assessmentLevel = 2.2; - var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation - { - DesignWaterLevelCalculation1 = - { - Output = new TestHydraulicBoundaryLocationOutput(assessmentLevel1) - } - }; + var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); var waveConditionsInput = new WaveConditionsInput { HydraulicBoundaryLocation = hydraulicBoundaryLocation }; - var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); + var assessmentSection = new AssessmentSectionStub(); + var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); + GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations( + failureMechanism, assessmentSection, + new [] + { + hydraulicBoundaryLocation + }); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] - { - hydraulicBoundaryLocation - }); + assessmentSection.WaterLevelCalculationsForLowerLimitNorm.First().Output = new TestHydraulicBoundaryLocationOutput(assessmentLevel); - assessmentSection.WaterLevelCalculationsForLowerLimitNorm.First().Output = new TestHydraulicBoundaryLocationOutput(assessmentLevel2); - yield return new TestCaseData( new GrassCoverErosionOutwardsWaveConditionsInputContext( waveConditionsInput, @@ -549,7 +545,7 @@ }, assessmentSection, new GrassCoverErosionOutwardsFailureMechanism()), - assessmentLevel1) + assessmentLevel) .SetName("Grass outwards input context"); yield return new TestCaseData( @@ -564,7 +560,7 @@ }, assessmentSection, new ForeshoreProfile[0]), - assessmentLevel2) + assessmentLevel) .SetName("Stability stone cover input context"); yield return new TestCaseData( @@ -579,7 +575,7 @@ }, assessmentSection, new ForeshoreProfile[0]), - assessmentLevel2) + assessmentLevel) .SetName("Wave impact asphalt cover input context"); }