Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs =================================================================== diff -u -r03db4c2a6708630d26b6a615620347dc755c50d0 -r2a666f9e74792e4baf5047052cd0dbecb90a07e5 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs (.../HydraulicBoundaryLocationPropertiesTest.cs) (revision 03db4c2a6708630d26b6a615620347dc755c50d0) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs (.../HydraulicBoundaryLocationPropertiesTest.cs) (revision 2a666f9e74792e4baf5047052cd0dbecb90a07e5) @@ -40,21 +40,24 @@ public class HydraulicBoundaryLocationPropertiesTest { [Test] - public void Constructor_HydraulicBoundaryLocationNull_ThrowsArgumentNullException() + public void Constructor_HydraulicBoundaryLocationCalculationNull_ThrowsArgumentNullException() { // Call TestDelegate test = () => new TestHydraulicBoundaryLocationProperties(null); // Assert string paramName = Assert.Throws(test).ParamName; - Assert.AreEqual("hydraulicBoundaryLocation", paramName); + Assert.AreEqual("hydraulicBoundaryLocationCalculation", paramName); } [Test] public void Constructor_ConstructionPropertiesNull_ThrowsArgumentNullException() { + // Setup + var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(new TestHydraulicBoundaryLocation()); + // Call - TestDelegate test = () => new TestHydraulicBoundaryLocationProperties(new TestHydraulicBoundaryLocation(), null); + TestDelegate test = () => new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocationCalculation, null); // Assert string paramName = Assert.Throws(test).ParamName; @@ -71,9 +74,10 @@ const string name = ""; var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(id, name, x, y); + var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation); // Call - HydraulicBoundaryLocationProperties hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocation); + HydraulicBoundaryLocationProperties hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocationCalculation); // Assert Assert.AreEqual(id, hydraulicBoundaryLocationProperties.Id); @@ -91,6 +95,7 @@ const double y = 890.0; const string name = "name"; var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(id, name, x, y); + var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation); var random = new Random(21); var topLevelIllustrationPoint = @@ -111,7 +116,7 @@ }); // Call - var locationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocation) + var locationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocationCalculation) { GeneralResult = generalResult }; @@ -151,9 +156,10 @@ const double x = 567.0; const double y = 890.0; var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(id, name, x, y); + var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation); // Call - HydraulicBoundaryLocationProperties hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocation); + HydraulicBoundaryLocationProperties hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocationCalculation); // Assert string expectedString = $"{name} {new Point2D(x, y)}"; @@ -165,9 +171,10 @@ { // Setup var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(0, "", 0.0, 0.0); + var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation); // Call - var hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocation) + var hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocationCalculation) { GeneralResult = new TestGeneralResultSubMechanismIllustrationPoint() }; @@ -235,10 +242,11 @@ { // Setup var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(0, "", 0.0, 0.0); + var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation); // Call var hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties( - hydraulicBoundaryLocation, + hydraulicBoundaryLocationCalculation, new HydraulicBoundaryLocationProperties.ConstructionProperties { IllustrationPointsIndex = 1, @@ -272,9 +280,10 @@ { // Setup var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(0, "", 0.0, 0.0); + var hydraulicBoundaryLocationCalculation = new HydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation); // Call - var hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocation); + var hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties(hydraulicBoundaryLocationCalculation); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(hydraulicBoundaryLocationProperties); @@ -289,11 +298,12 @@ { public GeneralResult GeneralResult; - public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation) - : base(hydraulicBoundaryLocation, new ConstructionProperties()) {} + public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation) + : base(hydraulicBoundaryLocationCalculation, new ConstructionProperties()) {} - public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation, ConstructionProperties propertyIndexes) - : base(hydraulicBoundaryLocation, propertyIndexes) {} + public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation, + ConstructionProperties propertyIndexes) + : base(hydraulicBoundaryLocationCalculation, propertyIndexes) {} protected override GeneralResult GetGeneralResult() {