Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs =================================================================== diff -u -r46653f17a2e39e1e69705b75d05436ac74d84aa1 -r10e6f9291398660f562b21320da82ba6b557bdf2 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision 46653f17a2e39e1e69705b75d05436ac74d84aa1) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision 10e6f9291398660f562b21320da82ba6b557bdf2) @@ -612,7 +612,8 @@ } private static GrassCoverErosionOutwardsDesignWaterLevelLocationsView ShowDesignWaterLevelLocationsView(ObservableList locations, - IAssessmentSection assessmentSection, Form form) + IAssessmentSection assessmentSection, + Form form) { var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism { @@ -708,35 +709,10 @@ return ShowFullyConfiguredDesignWaterLevelLocationsView(new ObservableTestAssessmentSectionStub(), form); } - protected override void ReplaceHydraulicBoundaryDatabaseAndNotifyObservers(LocationsView view) + protected override ObservableList GetLocationsInView(LocationsView view) { - ObservableList locations = ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView) view).FailureMechanism.HydraulicBoundaryLocations; - var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(10, "10", 10.0, 10.0); - - locations.Clear(); - locations.Add(hydraulicBoundaryLocation); - locations.NotifyObservers(); + return ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView) view).FailureMechanism.HydraulicBoundaryLocations; } - - protected override void ClearLocationOutputAndNotifyObservers(LocationsView view) - { - ObservableList locations = ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView) view).FailureMechanism.HydraulicBoundaryLocations; - - locations.ForEach(loc => - { - loc.DesignWaterLevelCalculation.Output = null; - loc.NotifyObservers(); - }); - } - - protected override void AddLocationOutputAndNotifyObservers(LocationsView view) - { - ObservableList locations = ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView) view).FailureMechanism.HydraulicBoundaryLocations; - - HydraulicBoundaryLocation location = locations.First(); - location.DesignWaterLevelCalculation.Output = new TestHydraulicBoundaryLocationOutput(new TestGeneralResultSubMechanismIllustrationPoint()); - location.NotifyObservers(); - } } } } \ No newline at end of file