Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Ringtoets.WaveImpactAsphaltCover.Forms.Test.csproj =================================================================== diff -u -r21e5ca435e594d16a948ebdaa8a4c648082bb08e -re457a68a5404232ece77c8753f3aa3ba19e6f3c7 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Ringtoets.WaveImpactAsphaltCover.Forms.Test.csproj (.../Ringtoets.WaveImpactAsphaltCover.Forms.Test.csproj) (revision 21e5ca435e594d16a948ebdaa8a4c648082bb08e) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Ringtoets.WaveImpactAsphaltCover.Forms.Test.csproj (.../Ringtoets.WaveImpactAsphaltCover.Forms.Test.csproj) (revision e457a68a5404232ece77c8753f3aa3ba19e6f3c7) @@ -85,6 +85,10 @@ + + {03DBE353-99F7-47D6-B826-60D694FFB9AC} + Application.Ringtoets.Storage.TestUtil + {3BBFD65B-B277-4E50-AE6D-BD24C3434609} Core.Common.Base Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rcc39748cdc122bfcc9bfb27e6e1ac9b7c558b5bf -re457a68a5404232ece77c8753f3aa3ba19e6f3c7 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision cc39748cdc122bfcc9bfb27e6e1ac9b7c558b5bf) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision e457a68a5404232ece77c8753f3aa3ba19e6f3c7) @@ -24,6 +24,7 @@ using System.IO; using System.Linq; using System.Windows.Forms; +using Application.Ringtoets.Storage.TestUtil; using Core.Common.Base; using Core.Common.Base.Data; using Core.Common.Base.Geometry; @@ -1081,7 +1082,7 @@ InputParameters = { HydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, "", 0.0, 0.0), - ForeshoreProfile = CreateForeshoreProfile(), + ForeshoreProfile = new TestForeshoreProfile(true), UseForeshore = true, UseBreakWater = true, StepSize = WaveConditionsInputStepSize.Half, @@ -1094,17 +1095,5 @@ calculation.InputParameters.HydraulicBoundaryLocation.DesignWaterLevel = (RoundedDouble) 9.3; return calculation; } - - private static ForeshoreProfile CreateForeshoreProfile() - { - return new ForeshoreProfile(new Point2D(0, 0), - new[] - { - new Point2D(3.3, 4.4), - new Point2D(5.5, 6.6) - }, - new BreakWater(BreakWaterType.Dam, 10.0), - new ForeshoreProfile.ConstructionProperties()); - } } } \ No newline at end of file Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -ra14d1309ecf82ff5b0385a2f6e3b2c4a216a4184 -re457a68a5404232ece77c8753f3aa3ba19e6f3c7 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision a14d1309ecf82ff5b0385a2f6e3b2c4a216a4184) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision e457a68a5404232ece77c8753f3aa3ba19e6f3c7) @@ -24,9 +24,9 @@ using System.IO; using System.Linq; using System.Windows.Forms; +using Application.Ringtoets.Storage.TestUtil; using Core.Common.Base; using Core.Common.Base.Data; -using Core.Common.Base.Geometry; using Core.Common.Controls.DataGrid; using Core.Common.Controls.TreeView; using Core.Common.Gui; @@ -1328,7 +1328,7 @@ InputParameters = { HydraulicBoundaryLocation = new HydraulicBoundaryLocation(1300001, "", 0.0, 0.0), - ForeshoreProfile = CreateForeshoreProfile(), + ForeshoreProfile = new TestForeshoreProfile(true), UseForeshore = true, UseBreakWater = true, StepSize = WaveConditionsInputStepSize.Half, @@ -1341,17 +1341,5 @@ calculation.InputParameters.HydraulicBoundaryLocation.DesignWaterLevel = (RoundedDouble) 9.3; return calculation; } - - private static ForeshoreProfile CreateForeshoreProfile() - { - return new ForeshoreProfile(new Point2D(0, 0), - new[] - { - new Point2D(3.3, 4.4), - new Point2D(5.5, 6.6) - }, - new BreakWater(BreakWaterType.Dam, 10.0), - new ForeshoreProfile.ConstructionProperties()); - } } } \ No newline at end of file Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Integration.Test/Ringtoets.WaveImpactAsphaltCover.Integration.Test.csproj =================================================================== diff -u -ra8c48040ef69edbc103390432fbd921244e92afd -re457a68a5404232ece77c8753f3aa3ba19e6f3c7 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Integration.Test/Ringtoets.WaveImpactAsphaltCover.Integration.Test.csproj (.../Ringtoets.WaveImpactAsphaltCover.Integration.Test.csproj) (revision a8c48040ef69edbc103390432fbd921244e92afd) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Integration.Test/Ringtoets.WaveImpactAsphaltCover.Integration.Test.csproj (.../Ringtoets.WaveImpactAsphaltCover.Integration.Test.csproj) (revision e457a68a5404232ece77c8753f3aa3ba19e6f3c7) @@ -62,6 +62,10 @@ + + {03DBE353-99F7-47D6-B826-60D694FFB9AC} + Application.Ringtoets.Storage.TestUtil + {3bbfd65b-b277-4e50-ae6d-bd24c3434609} Core.Common.Base Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Integration.Test/WaveImpactAsphaltCoverWaveConditionsCalculationActivityIntegrationTest.cs =================================================================== diff -u -r2731ce4dea0447322aef9238f4ef33cffe864c9e -re457a68a5404232ece77c8753f3aa3ba19e6f3c7 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Integration.Test/WaveImpactAsphaltCoverWaveConditionsCalculationActivityIntegrationTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationActivityIntegrationTest.cs) (revision 2731ce4dea0447322aef9238f4ef33cffe864c9e) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Integration.Test/WaveImpactAsphaltCoverWaveConditionsCalculationActivityIntegrationTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationActivityIntegrationTest.cs) (revision e457a68a5404232ece77c8753f3aa3ba19e6f3c7) @@ -23,13 +23,12 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using Application.Ringtoets.Storage.TestUtil; using Core.Common.Base.Data; -using Core.Common.Base.Geometry; using Core.Common.Base.Service; using Core.Common.TestUtil; using NUnit.Framework; using Ringtoets.Common.Data.AssessmentSection; -using Ringtoets.Common.Data.DikeProfiles; using Ringtoets.HydraRing.Calculation.Calculator.Factory; using Ringtoets.HydraRing.Calculation.Data; using Ringtoets.HydraRing.Calculation.Data.Input.WaveConditions; @@ -64,7 +63,7 @@ { InputParameters = { - ForeshoreProfile = CreateForeshoreProfile(), + ForeshoreProfile = new TestForeshoreProfile(true), UseForeshore = true, UseBreakWater = true, StepSize = WaveConditionsInputStepSize.Half, @@ -258,7 +257,7 @@ InputParameters = { HydraulicBoundaryLocation = assessmentSection.HydraulicBoundaryDatabase.Locations.First(hl => hl.Id == 1300001), - ForeshoreProfile = CreateForeshoreProfile(), + ForeshoreProfile = new TestForeshoreProfile(true), UseForeshore = true, UseBreakWater = true, StepSize = WaveConditionsInputStepSize.Half, @@ -281,17 +280,5 @@ importer.Import(assessmentSection, filePath); } } - - private static ForeshoreProfile CreateForeshoreProfile() - { - return new ForeshoreProfile(new Point2D(0, 0), - new[] - { - new Point2D(3.3, 4.4), - new Point2D(5.5, 6.6) - }, - new BreakWater(BreakWaterType.Dam, 10.0), - new ForeshoreProfile.ConstructionProperties()); - } } } \ No newline at end of file Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/Ringtoets.WaveImpactAsphaltCover.Service.Test.csproj =================================================================== diff -u -r7fa4481428458d47cc3ec2fe6e75b12a1c539c8d -re457a68a5404232ece77c8753f3aa3ba19e6f3c7 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/Ringtoets.WaveImpactAsphaltCover.Service.Test.csproj (.../Ringtoets.WaveImpactAsphaltCover.Service.Test.csproj) (revision 7fa4481428458d47cc3ec2fe6e75b12a1c539c8d) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/Ringtoets.WaveImpactAsphaltCover.Service.Test.csproj (.../Ringtoets.WaveImpactAsphaltCover.Service.Test.csproj) (revision e457a68a5404232ece77c8753f3aa3ba19e6f3c7) @@ -68,6 +68,10 @@ + + {03DBE353-99F7-47D6-B826-60D694FFB9AC} + Application.Ringtoets.Storage.TestUtil + {3bbfd65b-b277-4e50-ae6d-bd24c3434609} Core.Common.Base Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverWaveConditionsCalculationServiceTest.cs =================================================================== diff -u -rcc27fe12a2d3f982685791389aa68fd6ca25fcd0 -re457a68a5404232ece77c8753f3aa3ba19e6f3c7 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverWaveConditionsCalculationServiceTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationServiceTest.cs) (revision cc27fe12a2d3f982685791389aa68fd6ca25fcd0) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverWaveConditionsCalculationServiceTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationServiceTest.cs) (revision e457a68a5404232ece77c8753f3aa3ba19e6f3c7) @@ -22,12 +22,11 @@ using System; 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; using NUnit.Framework; using Rhino.Mocks; -using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.DikeProfiles; using Ringtoets.Common.Data.TestUtil; using Ringtoets.HydraRing.Calculation.Calculator.Factory; @@ -211,8 +210,8 @@ { // Setup WaveImpactAsphaltCoverWaveConditionsCalculation calculation = GetDefaultCalculation(); - calculation.InputParameters.ForeshoreProfile = CreateForeshoreProfile(new BreakWater(BreakWaterType.Dam, - breakWaterHeight)); + calculation.InputParameters.ForeshoreProfile = new TestForeshoreProfile(new BreakWater(BreakWaterType.Dam, + breakWaterHeight)); calculation.InputParameters.UseBreakWater = true; var isValid = true; @@ -244,8 +243,8 @@ { // Setup WaveImpactAsphaltCoverWaveConditionsCalculation calculation = GetDefaultCalculation(); - calculation.InputParameters.ForeshoreProfile = CreateForeshoreProfile(new BreakWater(BreakWaterType.Dam, - breakWaterHeight)); + calculation.InputParameters.ForeshoreProfile = new TestForeshoreProfile(new BreakWater(BreakWaterType.Dam, + breakWaterHeight)); calculation.InputParameters.UseBreakWater = false; WaveImpactAsphaltCoverFailureMechanism waveImpactAsphaltCoverFailureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); @@ -308,7 +307,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: @@ -522,7 +521,7 @@ { DesignWaterLevel = (RoundedDouble) 9.3 }, - ForeshoreProfile = CreateForeshoreProfile(), + ForeshoreProfile = new TestForeshoreProfile(true), UseForeshore = true, UseBreakWater = true, StepSize = WaveConditionsInputStepSize.Half, @@ -543,22 +542,5 @@ return calculation; } - - private static ForeshoreProfile CreateForeshoreProfile() - { - return CreateForeshoreProfile(new BreakWater(BreakWaterType.Dam, 10.0)); - } - - 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()); - } } } \ No newline at end of file