Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs =================================================================== diff -u -re0368fded7b5205d75bd1fbefd90ba8634d58fa6 -r428346aca4810ed68d8778943246f581cb1a4386 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs (.../PipingInputContextPropertiesTest.cs) (revision e0368fded7b5205d75bd1fbefd90ba8634d58fa6) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs (.../PipingInputContextPropertiesTest.cs) (revision 428346aca4810ed68d8778943246f581cb1a4386) @@ -7,6 +7,7 @@ using NUnit.Framework; using Rhino.Mocks; using Ringtoets.Common.Data; +using Ringtoets.HydraRing.Data; using Ringtoets.Piping.Calculation.TestUtil; using Ringtoets.Piping.Data; using Ringtoets.Piping.Data.Probabilistics; @@ -48,10 +49,13 @@ IsAquifer = true } }); + var testHydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + var inputParameters = new PipingInput { SurfaceLine = surfaceLine, - SoilProfile = soilProfile + SoilProfile = soilProfile, + HydraulicBoundaryLocation = testHydraulicBoundaryLocation }; var properties = new PipingInputContextProperties @@ -100,6 +104,7 @@ Assert.AreSame(surfaceLine, properties.SurfaceLine); Assert.AreSame(soilProfile, properties.SoilProfile); + Assert.AreSame(testHydraulicBoundaryLocation, properties.HydraulicBoundaryLocation); mocks.ReplayAll(); } @@ -139,7 +144,7 @@ var mocks = new MockRepository(); var assessmentSectionMock = mocks.StrictMock(); var projectObserver = mocks.StrictMock(); - int numberProperties = 24; + int numberProperties = 25; projectObserver.Expect(o => o.UpdateObserver()).Repeat.Times(numberProperties); mocks.ReplayAll(); @@ -174,6 +179,7 @@ var surfaceLine = ValidSurfaceLine(0.0, 4.0); PipingSoilProfile soilProfile = new TestPipingSoilProfile(); + HydraulicBoundaryLocation hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); // Call var inputContext = new PipingInputContextProperties @@ -204,6 +210,7 @@ BeddingAngle = beddingAngle, SurfaceLine = surfaceLine, SoilProfile = soilProfile, + HydraulicBoundaryLocation = hydraulicBoundaryLocation }; // Assert I @@ -228,6 +235,7 @@ Assert.AreEqual(meanDiameter70, inputParameters.MeanDiameter70); Assert.AreEqual(beddingAngle, inputParameters.BeddingAngle); Assert.AreEqual(soilProfile, inputParameters.SoilProfile); + Assert.AreEqual(hydraulicBoundaryLocation, inputParameters.HydraulicBoundaryLocation); // Call inputContext.ExitPointL = exitPointL; @@ -480,5 +488,10 @@ }); return surfaceLine; } + + private class TestHydraulicBoundaryLocation : HydraulicBoundaryLocation + { + public TestHydraulicBoundaryLocation() : base(0, string.Empty, 0, 0) { } + } } } \ No newline at end of file