Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs =================================================================== diff -u -rdd403402744c68406685f2838f6f41e23eada5f2 -r46653f17a2e39e1e69705b75d05436ac74d84aa1 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision dd403402744c68406685f2838f6f41e23eada5f2) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision 46653f17a2e39e1e69705b75d05436ac74d84aa1) @@ -206,7 +206,7 @@ } [Test] - public void DesignWaterLevelLocationsView_HydraulicBoundaryDatabaseUpdated_DataGridViewCorrectlyUpdated() + public void DesignWaterLevelLocationsView_HydraulicBoundaryLocationsUpdated_DataGridViewCorrectlyUpdated() { // Setup IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(mockRepository); @@ -255,7 +255,7 @@ } [Test] - public void DesignWaterLevelLocationsView_HydraulicBoundaryDatabaseUpdated_IllustrationPointsControlCorrectlyUpdated() + public void DesignWaterLevelLocationsView_HydraulicBoundaryLocationUpdated_IllustrationPointsControlCorrectlyUpdated() { // Setup IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(mockRepository); @@ -380,7 +380,7 @@ DataGridViewRowCollection rows = locationsDataGridViewControl.Rows; rows[0].Cells[locationCalculateColumnIndex].Value = true; } - + // Then var button = (Button) view.Controls.Find("CalculateForSelectedButton", true)[0]; Assert.AreEqual(rowSelected && contributionNotZero, button.Enabled); @@ -394,7 +394,7 @@ // Setup const string databaseFilePath = "DatabaseFilePath"; - IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(mockRepository); + IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(mockRepository); assessmentSection.Stub(a => a.Id).Return(string.Empty); assessmentSection.Stub(a => a.FailureMechanismContribution) .Return(FailureMechanismContributionTestFactory.CreateFailureMechanismContribution()); @@ -554,7 +554,7 @@ hydraulicBoundaryDatabase.UsePreprocessor = false; hydraulicBoundaryDatabase.PreprocessorDirectory = "InvalidPreprocessorDirectory"; - GrassCoverErosionOutwardsDesignWaterLevelLocationsView view = ShowFullyConfiguredDesignWaterLevelLocationsView(assessmentSection, testForm); + GrassCoverErosionOutwardsDesignWaterLevelLocationsView view = ShowFullyConfiguredDesignWaterLevelLocationsView(assessmentSection, testForm); DataGridView locationsDataGridView = GetLocationsDataGridView(); DataGridViewRowCollection rows = locationsDataGridView.Rows; rows[0].Cells[locationCalculateColumnIndex].Value = true; @@ -700,7 +700,7 @@ protected override object GetLocationSelection(LocationsView view, object selectedRowObject) { return new GrassCoverErosionOutwardsDesignWaterLevelLocationContext(((HydraulicBoundaryLocationRow) selectedRowObject).CalculatableObject, - ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView)view).FailureMechanism.HydraulicBoundaryLocations); + ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView) view).FailureMechanism.HydraulicBoundaryLocations); } protected override LocationsView ShowFullyConfiguredLocationsView(Form form) @@ -710,7 +710,7 @@ protected override void ReplaceHydraulicBoundaryDatabaseAndNotifyObservers(LocationsView view) { - ObservableList locations = ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView)view).FailureMechanism.HydraulicBoundaryLocations; + ObservableList locations = ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView) view).FailureMechanism.HydraulicBoundaryLocations; var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(10, "10", 10.0, 10.0); locations.Clear(); @@ -731,7 +731,7 @@ protected override void AddLocationOutputAndNotifyObservers(LocationsView view) { - ObservableList locations = ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView)view).FailureMechanism.HydraulicBoundaryLocations; + ObservableList locations = ((GrassCoverErosionOutwardsDesignWaterLevelLocationsView) view).FailureMechanism.HydraulicBoundaryLocations; HydraulicBoundaryLocation location = locations.First(); location.DesignWaterLevelCalculation.Output = new TestHydraulicBoundaryLocationOutput(new TestGeneralResultSubMechanismIllustrationPoint());