Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -r90deb88f193d2b0eb45c013b1101864c298a18d5 -rbc7cd9cbf90d04580e6b3542c56edc590867c43a --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 90deb88f193d2b0eb45c013b1101864c298a18d5) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision bc7cd9cbf90d04580e6b3542c56edc590867c43a) @@ -63,7 +63,7 @@ SetSectionResults(pipingFailureMechanism.SectionResults); GrassCoverErosionInwardsFailureMechanism grassCoverErosionInwardsFailureMechanism = assessmentSection.GrassCoverErosionInwards; - ConfigureGrassCoverErosionInwardsFailureMechanism(grassCoverErosionInwardsFailureMechanism); + ConfigureGrassCoverErosionInwardsFailureMechanism(grassCoverErosionInwardsFailureMechanism, assessmentSection); AddSections(grassCoverErosionInwardsFailureMechanism); SetSectionResults(grassCoverErosionInwardsFailureMechanism.SectionResults); @@ -258,35 +258,38 @@ }); } - private static void ConfigureGrassCoverErosionInwardsFailureMechanism(GrassCoverErosionInwardsFailureMechanism failureMechanism) + private static void ConfigureGrassCoverErosionInwardsFailureMechanism(GrassCoverErosionInwardsFailureMechanism failureMechanism, + IAssessmentSection assessmentSection) { failureMechanism.GeneralInput.N = 15; - failureMechanism.DikeProfiles.Add(new DikeProfile(new Point2D(1, 2), - new[] - { - new RoughnessPoint(new Point2D(1, 2), 1), - new RoughnessPoint(new Point2D(3, 4), 0.5), - }, - new[] - { - new Point2D(5, 6), - new Point2D(7, 8), - }, - null, new DikeProfile.ConstructionProperties - { - DikeHeight = 1.1, - Name = "2.2", - Orientation = 3.3, - X0 = 4.4 - })); + var dikeProfile = new DikeProfile(new Point2D(1, 2), + new[] + { + new RoughnessPoint(new Point2D(1, 2), 1), + new RoughnessPoint(new Point2D(3, 4), 0.5) + }, + new[] + { + new Point2D(5, 6), + new Point2D(7, 8) + }, + new BreakWater(BreakWaterType.Caisson, 15), + new DikeProfile.ConstructionProperties + { + DikeHeight = 1.1, + Name = "2.2", + Orientation = 3.3, + X0 = 4.4 + }); + failureMechanism.DikeProfiles.Add(dikeProfile); failureMechanism.DikeProfiles.Add(new DikeProfile(new Point2D(9, 10), new[] { new RoughnessPoint(new Point2D(11, 12), 1), new RoughnessPoint(new Point2D(13, 14), 0.5), }, new Point2D[0], - new BreakWater(BreakWaterType.Caisson, 15), + null, new DikeProfile.ConstructionProperties { DikeHeight = 5.5, @@ -303,6 +306,26 @@ { Name = "Calculation 1", Comments = "Comments for Calculation 1", + InputParameters = + { + DikeProfile = dikeProfile, + HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryDatabase.Locations[0], + BreakWater = + { + Height = (RoundedDouble)(dikeProfile.BreakWater.Height + 0.3), + Type = BreakWaterType.Wall + }, + DikeHeight = (RoundedDouble)(dikeProfile.DikeHeight + 0.2), + Orientation = dikeProfile.Orientation, + CriticalFlowRate = + { + Mean = (RoundedDouble)1.1, + StandardDeviation = (RoundedDouble)2.2 + }, + CalculateDikeHeight = true, + UseForeshore = true, + UseBreakWater = true + }, Output = new GrassCoverErosionInwardsOutput(0.45, true, new ProbabilityAssessmentOutput(0.004, 0.95, 0.00003, 1.1, 4.5), 0.56) } }