Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/WaveHeightLocationsViewTest.cs =================================================================== diff -u -rf8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e -r4cb5a6c2c944993a3643e7f77b64455c93c4070e --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/WaveHeightLocationsViewTest.cs (.../WaveHeightLocationsViewTest.cs) (revision f8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/WaveHeightLocationsViewTest.cs (.../WaveHeightLocationsViewTest.cs) (revision 4cb5a6c2c944993a3643e7f77b64455c93c4070e) @@ -547,42 +547,16 @@ { public TestHydraulicBoundaryDatabase(bool usePreprocessor, string preprocessorDirectory) : base(usePreprocessor, preprocessorDirectory) { - AddLocations(); + SetParameters(CreateLocations(), "", "", usePreprocessor, preprocessorDirectory); } public TestHydraulicBoundaryDatabase() { - AddLocations(); + SetParameters(CreateLocations(), "", ""); } - private void AddLocations() + private static List CreateLocations() { - Locations.Add(new HydraulicBoundaryLocation(1, "1", 1.0, 1.0)); - Locations.Add(new HydraulicBoundaryLocation(2, "2", 2.0, 2.0) - { - WaveHeightCalculation = - { - Output = new TestHydraulicBoundaryLocationOutput(1.23) - } - }); - Locations.Add(new HydraulicBoundaryLocation(3, "3", 3.0, 3.0) - { - DesignWaterLevelCalculation = - { - Output = new TestHydraulicBoundaryLocationOutput(2.45) - } - }); - Locations.Add(new HydraulicBoundaryLocation(4, "4", 4.0, 4.0) - { - WaveHeightCalculation = - { - InputParameters = - { - ShouldIllustrationPointsBeCalculated = true - } - } - }); - var topLevelIllustrationPoints = new[] { new TopLevelSubMechanismIllustrationPoint(WindDirectionTestFactory.CreateTestWindDirection(), @@ -596,17 +570,45 @@ var generalResult = new TestGeneralResultSubMechanismIllustrationPoint(topLevelIllustrationPoints); var output = new TestHydraulicBoundaryLocationOutput(1.01, generalResult); - Locations.Add(new HydraulicBoundaryLocation(5, "5", 5.0, 5.0) + return new List { - WaveHeightCalculation = + new HydraulicBoundaryLocation(1, "1", 1.0, 1.0), + new HydraulicBoundaryLocation(2, "2", 2.0, 2.0) { - InputParameters = + WaveHeightCalculation = { - ShouldIllustrationPointsBeCalculated = true - }, - Output = output + Output = new TestHydraulicBoundaryLocationOutput(1.23) + } + }, + new HydraulicBoundaryLocation(3, "3", 3.0, 3.0) + { + DesignWaterLevelCalculation = + { + Output = new TestHydraulicBoundaryLocationOutput(2.45) + } + }, + new HydraulicBoundaryLocation(4, "4", 4.0, 4.0) + { + WaveHeightCalculation = + { + InputParameters = + { + ShouldIllustrationPointsBeCalculated = true + } + } + }, + new HydraulicBoundaryLocation(5, "5", 5.0, 5.0) + { + WaveHeightCalculation = + { + InputParameters = + { + ShouldIllustrationPointsBeCalculated = true + }, + Output = output + } } - }); + }; } }