Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs =================================================================== diff -u -rf07d6418a5280c74ea8a35de183dbaed51dda066 -r2c3c354d3910e788173efc979e04e3701bcdb659 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs (.../WaveConditionsInputViewInfoTest.cs) (revision f07d6418a5280c74ea8a35de183dbaed51dda066) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs (.../WaveConditionsInputViewInfoTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659) @@ -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; @@ -97,8 +98,7 @@ var context = new TestWaveConditionsInputContext(input, calculation, new AssessmentSection(AssessmentSectionComposition.Dike), - new ForeshoreProfile[0], - new HydraulicBoundaryLocation[0]); + new ForeshoreProfile[0]); // Call object viewData = info.GetViewData(context); @@ -512,28 +512,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) - }, - DesignWaterLevelCalculation3 = - { - Output = new TestHydraulicBoundaryLocationOutput(assessmentLevel2) - } - }; + 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.SetHydraulicBoundaryLocations( + failureMechanism, assessmentSection, + new [] + { + hydraulicBoundaryLocation + }); + assessmentSection.WaterLevelCalculationsForLowerLimitNorm.First().Output = new TestHydraulicBoundaryLocationOutput(assessmentLevel); + yield return new TestCaseData( new GrassCoverErosionOutwardsWaveConditionsInputContext( waveConditionsInput, @@ -546,7 +544,7 @@ }, assessmentSection, new GrassCoverErosionOutwardsFailureMechanism()), - assessmentLevel1) + assessmentLevel) .SetName("Grass outwards input context"); yield return new TestCaseData( @@ -561,7 +559,7 @@ }, assessmentSection, new ForeshoreProfile[0]), - assessmentLevel2) + assessmentLevel) .SetName("Stability stone cover input context"); yield return new TestCaseData( @@ -576,7 +574,7 @@ }, assessmentSection, new ForeshoreProfile[0]), - assessmentLevel2) + assessmentLevel) .SetName("Wave impact asphalt cover input context"); }