Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/HydraulicBoundaryLocationsViewTest.cs =================================================================== diff -u -r28e867674791c1111107ea44e960313f43fc6aea -rb3ce613f8ce005a3b46ed8f6b4e9d12814acdec0 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/HydraulicBoundaryLocationsViewTest.cs (.../HydraulicBoundaryLocationsViewTest.cs) (revision 28e867674791c1111107ea44e960313f43fc6aea) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/HydraulicBoundaryLocationsViewTest.cs (.../HydraulicBoundaryLocationsViewTest.cs) (revision b3ce613f8ce005a3b46ed8f6b4e9d12814acdec0) @@ -41,9 +41,9 @@ namespace Ringtoets.Integration.Forms.Test.Views { + [TestFixture] public class HydraulicBoundaryLocationsViewTest { - private const int locationCalculateColumnIndex = 0; private Form testForm; [SetUp] @@ -261,7 +261,7 @@ } [Test] - public void CalculateForSelectedButton_OneSelected_CallsCalculateDesignWaterLevels() + public void CalculateForSelectedButton_OneSelected_CallsCalculateHandleCalculateSelectedLocations() { // Setup TestHydraulicBoundaryLocationsView view = ShowFullyConfiguredTestHydraulicBoundaryLocationsView(); @@ -306,6 +306,8 @@ Assert.DoesNotThrow(test); } + private const int locationCalculateColumnIndex = 0; + private TestHydraulicBoundaryLocationsView ShowTestHydraulicBoundaryLocationsView() { var view = new TestHydraulicBoundaryLocationsView(); @@ -373,21 +375,22 @@ : base(wrappedData, hydraulicBoundaryLocation) {} } - private class TestHydraulicBoundaryLocationContextRow : HydraulicBoundaryLocationContextRow { - public TestHydraulicBoundaryLocationContextRow(HydraulicBoundaryLocationContext hydraulicBoundaryLocationContext) + private class TestHydraulicBoundaryLocationContextRow : HydraulicBoundaryLocationContextRow + { + public TestHydraulicBoundaryLocationContextRow(HydraulicBoundaryLocationContext hydraulicBoundaryLocationContext) : base(hydraulicBoundaryLocationContext) {} } private class TestHydraulicBoundaryLocationsView : HydraulicBoundaryLocationsView { - - public TestHydraulicBoundaryLocationsView() { dataGridViewControl.AddCheckBoxColumn(TypeUtils.GetMemberName(row => row.ToCalculate), ""); LocationsToCalculate = new List(); } + public IEnumerable LocationsToCalculate { get; private set; } + protected override void SetDataSource() { dataGridViewControl.SetDataSource(AssessmentSection != null && AssessmentSection.HydraulicBoundaryDatabase != null @@ -401,8 +404,6 @@ { LocationsToCalculate = locations; } - - public IEnumerable LocationsToCalculate { get; private set; } } } } \ No newline at end of file