Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -rb59831b545bb311d1a7cc09f207f3add659886c5 -r3dbf451144dc23d8abe649913baee1a5e544c48c --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision b59831b545bb311d1a7cc09f207f3add659886c5) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 3dbf451144dc23d8abe649913baee1a5e544c48c) @@ -45,6 +45,7 @@ using Ringtoets.HeightStructures.Data; using Ringtoets.HeightStructures.Data.TestUtil; using Ringtoets.Integration.Data; +using Ringtoets.Integration.Data.StandAlone; using Ringtoets.Integration.Data.StandAlone.SectionResults; using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; @@ -158,8 +159,16 @@ SetSectionResults(stabilityPointStructuresFailureMechanism.SectionResults, (StructuresCalculation) stabilityPointStructuresFailureMechanism.Calculations.First()); - AddSections(assessmentSection.MacrostabilityOutwards); - SetSectionResults(assessmentSection.MacrostabilityOutwards.SectionResults); + MacroStabilityOutwardsFailureMechanism macroStabilityOutwardsFailureMechanism = assessmentSection.MacroStabilityOutwards; + ConfigureMacroStabilityOutwardsFailureMechanism(macroStabilityOutwardsFailureMechanism); + AddSections(macroStabilityOutwardsFailureMechanism); + SetSectionResults(macroStabilityOutwardsFailureMechanism.SectionResults); + + PipingStructureFailureMechanism pipingStructureFailureMechanism = assessmentSection.PipingStructure; + ConfigurePipingStructureFailureMechanism(pipingStructureFailureMechanism); + AddSections(pipingStructureFailureMechanism); + SetSectionResults(pipingStructureFailureMechanism.SectionResults); + AddSections(assessmentSection.Microstability); SetSectionResults(assessmentSection.Microstability.SectionResults); AddSections(assessmentSection.WaterPressureAsphaltCover); @@ -170,8 +179,6 @@ SetSectionResults(assessmentSection.GrassCoverSlipOffOutwards.SectionResults); AddSections(assessmentSection.StrengthStabilityLengthwiseConstruction); SetSectionResults(assessmentSection.StrengthStabilityLengthwiseConstruction.SectionResults); - AddSections(assessmentSection.PipingStructure); - SetSectionResults(assessmentSection.PipingStructure.SectionResults); SetSectionResults(assessmentSection.DuneErosion.SectionResults); AddSections(assessmentSection.TechnicalInnovation); SetSectionResults(assessmentSection.TechnicalInnovation.SectionResults); @@ -218,10 +225,10 @@ } } - private static void SetSectionResults(IEnumerable sectionResults) + private static void SetSectionResults(IEnumerable sectionResults) { var random = new Random(21); - foreach (MacrostabilityOutwardsFailureMechanismSectionResult sectionResult in sectionResults) + foreach (MacroStabilityOutwardsFailureMechanismSectionResult sectionResult in sectionResults) { sectionResult.AssessmentLayerOne = GetAssessmentLayerOneState(); sectionResult.AssessmentLayerTwoA = (RoundedDouble) random.NextDouble(); @@ -451,12 +458,15 @@ private static StructuresOutput GetStructuresOutputWithIllustrationPoints() { var random = new Random(56); - var output = new StructuresOutput(new ProbabilityAssessmentOutput(random.NextDouble(), - random.NextDouble(), - random.NextDouble(), - random.NextDouble(), - random.NextDouble()), - GetConfiguredGeneralResultFaultTreeIllustrationPoint()); + var output = new StructuresOutput( + random.NextDouble(), + new ProbabilityAssessmentOutput( + random.NextDouble(), + random.NextDouble(), + random.NextDouble(), + random.NextDouble(), + random.NextDouble()), + GetConfiguredGeneralResultFaultTreeIllustrationPoint()); return output; } @@ -487,6 +497,15 @@ ); } + #region MacroStabilityOutwards FailureMechanism + + private static void ConfigureMacroStabilityOutwardsFailureMechanism(MacroStabilityOutwardsFailureMechanism macroStabilityOutwardsFailureMechanism) + { + macroStabilityOutwardsFailureMechanism.MacroStabilityOutwardsProbabilityAssessmentInput.A = 0.6; + } + + #endregion + #region StabilityPointStructures FailureMechanism private static void ConfigureStabilityPointStructuresFailureMechanism(StabilityPointStructuresFailureMechanism failureMechanism, @@ -547,7 +566,7 @@ Structure = stabilityPointStructure, ShouldIllustrationPointsBeCalculated = false }, - Output = new StructuresOutput(new ProbabilityAssessmentOutput(0.8, 0.95, 0.10, 0.11, 0.12), null) + Output = new StructuresOutput(0.11, new ProbabilityAssessmentOutput(0.8, 0.95, 0.10, 0.11, 0.12), null) }, new StructuresCalculation { @@ -668,7 +687,7 @@ UseForeshore = true, ShouldIllustrationPointsBeCalculated = false }, - Output = new StructuresOutput(new ProbabilityAssessmentOutput(0.8, 0.95, 0.10, 0.11, 0.12), null) + Output = new StructuresOutput(0.11, new ProbabilityAssessmentOutput(0.8, 0.95, 0.10, 0.11, 0.12), null) }, new StructuresCalculation { @@ -836,7 +855,7 @@ Structure = heightStructure, ShouldIllustrationPointsBeCalculated = false }, - Output = new StructuresOutput(new ProbabilityAssessmentOutput(0.8, 0.95, 0.10, 0.11, 0.12), null) + Output = new StructuresOutput(0.11, new ProbabilityAssessmentOutput(0.8, 0.95, 0.10, 0.11, 0.12), null) }, new StructuresCalculation { @@ -1701,7 +1720,7 @@ UseForeshore = true, UseBreakWater = true }, - Output = new GrassCoverErosionInwardsOutput(new OvertoppingOutput(0.45, true, 1.1, new ProbabilityAssessmentOutput(0.004, 0.95, 0.00003, 1.1, 4.5), null), + Output = new GrassCoverErosionInwardsOutput(new OvertoppingOutput(0.45, true, 1.1, null), new DikeHeightOutput(0.56, 0.05, 2, 0.06, 3, CalculationConvergence.CalculatedConverged, null), new OvertoppingRateOutput(0.57, 0.07, 4, 0.08, 5, CalculationConvergence.CalculatedConverged, null)) }, @@ -1736,7 +1755,7 @@ ShouldDikeHeightIllustrationPointsBeCalculated = true, ShouldOvertoppingRateIllustrationPointsBeCalculated = true }, - Output = new GrassCoverErosionInwardsOutput(new OvertoppingOutput(0.45, true, 1.1, new ProbabilityAssessmentOutput(0.004, 0.95, 0.00003, 1.1, 4.5), GetConfiguredGeneralResultFaultTreeIllustrationPoint()), + Output = new GrassCoverErosionInwardsOutput(new OvertoppingOutput(0.45, true, 1.1, GetConfiguredGeneralResultFaultTreeIllustrationPoint()), new DikeHeightOutput(0.56, 0.05, 2, 0.06, 3, CalculationConvergence.CalculatedConverged, GetConfiguredGeneralResultFaultTreeIllustrationPoint()), new OvertoppingRateOutput(0.57, 0.07, 4, 0.08, 5, CalculationConvergence.CalculatedConverged, GetConfiguredGeneralResultFaultTreeIllustrationPoint())) } @@ -1875,6 +1894,8 @@ private static void ConfigureStabilityStoneCoverFailureMechanism(StabilityStoneCoverFailureMechanism failureMechanism, IAssessmentSection assessmentSection) { + failureMechanism.GeneralInput.N = (RoundedDouble) 15; + ForeshoreProfile foreshoreProfile = failureMechanism.ForeshoreProfiles[0]; failureMechanism.WaveConditionsCalculationGroup.Children.Add(new CalculationGroup { @@ -2052,5 +2073,14 @@ } #endregion + + #region PipingStructure FailureMechanism + + private static void ConfigurePipingStructureFailureMechanism(PipingStructureFailureMechanism pipingStructureFailureMechanism) + { + pipingStructureFailureMechanism.N = (RoundedDouble) 12.5; + } + + #endregion } } \ No newline at end of file