Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Service.Test/ClosingStructuresCalculationServiceTest.cs =================================================================== diff -u -rcc27fe12a2d3f982685791389aa68fd6ca25fcd0 -r64b9d05b572ff4878d9e74c6d1e4586e1b6d0a3d --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Service.Test/ClosingStructuresCalculationServiceTest.cs (.../ClosingStructuresCalculationServiceTest.cs) (revision cc27fe12a2d3f982685791389aa68fd6ca25fcd0) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Service.Test/ClosingStructuresCalculationServiceTest.cs (.../ClosingStructuresCalculationServiceTest.cs) (revision 64b9d05b572ff4878d9e74c6d1e4586e1b6d0a3d) @@ -23,6 +23,7 @@ using System.ComponentModel; using System.IO; using System.Linq; +using Application.Ringtoets.Storage.TestUtil; using Core.Common.Base.Data; using Core.Common.Base.Geometry; using Core.Common.TestUtil; @@ -463,7 +464,7 @@ { InflowModelType = inflowModelType, HydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, "name", 2, 2), - ForeshoreProfile = CreateForeshoreProfile(new BreakWater(BreakWaterType.Dam, breakWaterHeight)), + ForeshoreProfile = new TestForeshoreProfile(new BreakWater(BreakWaterType.Dam, breakWaterHeight)), UseBreakWater = true } }; @@ -790,7 +791,7 @@ { HydraulicBoundaryLocation = assessmentSectionStub.HydraulicBoundaryDatabase.Locations.First(hl => hl.Id == 1300001), InflowModelType = inflowModelType, - ForeshoreProfile = CreateForeshoreProfile(new BreakWater(BreakWaterType.Dam, 10)), + ForeshoreProfile = new TestForeshoreProfile(true), UseForeshore = true, UseBreakWater = true } @@ -804,7 +805,7 @@ calculation.InputParameters.UseBreakWater = false; break; case CalculationType.ForeshoreWithoutBreakWater: - calculation.InputParameters.ForeshoreProfile = CreateForeshoreProfile(null); + calculation.InputParameters.ForeshoreProfile = new TestForeshoreProfile(); calculation.InputParameters.UseBreakWater = false; break; case CalculationType.ForeshoreWithValidBreakWater: @@ -1002,18 +1003,6 @@ } } - private static ForeshoreProfile CreateForeshoreProfile(BreakWater breakWater) - { - return new ForeshoreProfile(new Point2D(0, 0), - new[] - { - new Point2D(3.3, 4.4), - new Point2D(5.5, 6.6) - }, - breakWater, - new ForeshoreProfile.ConstructionProperties()); - } - #region Parameter name mappings private const string insideWaterLevel = "binnenwaterstand";