Index: Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs =================================================================== diff -u -ra053684de9667dfb70aa8cf669e22843c2bd39ed -r30d9e76f4066582f563d98040f35270f4c3dddef --- Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision a053684de9667dfb70aa8cf669e22843c2bd39ed) +++ Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision 30d9e76f4066582f563d98040f35270f4c3dddef) @@ -10,6 +10,7 @@ using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.IO; using Ringtoets.GrassCoverErosionInwards.Data; +using Ringtoets.HeightStructures.Data; using Ringtoets.HydraRing.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Plugin.FileImporters; @@ -65,6 +66,7 @@ InitializeDemoFailureMechanismSections(demoAssessmentSection); InitializeDemoPipingData(demoAssessmentSection); InitializeGrassCoverErosionInwardsData(demoAssessmentSection); + InitializeHeightStructuresData(demoAssessmentSection); return demoAssessmentSection; } @@ -152,6 +154,16 @@ calculation.InputParameters.NotifyObservers(); } + private void InitializeHeightStructuresData(AssessmentSection demoAssessmentSection) + { + HeightStructuresFailureMechanism failureMechanism = demoAssessmentSection.HeightStructures; + + var calculation = new HeightStructuresCalculation(failureMechanism.GeneralInput, failureMechanism.NormProbabilityInput); + failureMechanism.CalculationsGroup.Children.Add(calculation); + calculation.InputParameters.HydraulicBoundaryLocation = demoAssessmentSection.HydraulicBoundaryDatabase.Locations.First(hl => hl.Id == 1300001); + calculation.InputParameters.NotifyObservers(); + } + private void SetHydraulicBoundaryLocationValues(ICollection locations) { locations.ElementAt(0).DesignWaterLevel = 5.78;