Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/DikeProfile.cs =================================================================== diff -u -ra9de6c776f0a8367193b3ac142d784979bb3766a -raf50d3e2a0d74d0220363e7120c6fbf1923870f4 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/DikeProfile.cs (.../DikeProfile.cs) (revision a9de6c776f0a8367193b3ac142d784979bb3766a) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/DikeProfile.cs (.../DikeProfile.cs) (revision af50d3e2a0d74d0220363e7120c6fbf1923870f4) @@ -60,6 +60,26 @@ } /// + /// Gets or sets the name of the dike profile. + /// + public string Name { get; set; } + + /// + /// Gets or sets the optional notes about this instance. + /// + public string Memo { get; set; } + + /// + /// Gets the reference point in world coordinates corresponding to the local coordinate . + /// + public Point2D WorldReferencePoint { get; private set; } + + /// + /// Gets or sets the local x-coordinate corresponding to the world reference point . + /// + public double X0 { get; set; } + + /// /// Gets or sets the orientation of the dike profile geometry with respect to North /// in degrees. A positive value equals a clockwise rotation. /// @@ -86,26 +106,33 @@ } /// - /// Gets the reference point in world coordinates corresponding to the local coordinate . + /// Indicates if there is a break water object available for this instance or not. /// - public Point2D WorldReferencePoint { get; private set; } + public bool HasBreakWater + { + get + { + return BreakWater != null; + } + } /// - /// Gets or sets the local x-coordinate corresponding to the world reference point . + /// Gets or sets the break water object of the dike profile, if any. /// - public double X0 { get; set; } + public BreakWater BreakWater { get; set; } /// - /// Gets or sets the name of the dike profile. + /// Gets the geometry of the foreshore. /// - public string Name { get; set; } + public IList ForeshoreGeometry + { + get + { + return foreshoreGeometry; + } + } /// - /// Gets or sets the break water object of the dike profile, if any. - /// - public BreakWater BreakWater { get; set; } - - /// /// Gets the geometry of the dike with roughness data. /// /// @@ -123,17 +150,6 @@ } /// - /// Gets the geometry of the foreshore. - /// - public IList ForeshoreGeometry - { - get - { - return foreshoreGeometry; - } - } - - /// /// Gets or sets the height of the dike [m+NAP]. /// public RoundedDouble CrestLevel @@ -147,21 +163,5 @@ crestLevel = value.ToPrecision(crestLevel.NumberOfDecimalPlaces); } } - - /// - /// Gets or sets the optional notes about this instance. - /// - public string Memo { get; set; } - - /// - /// Indicates if there is a break water object available for this instance or not. - /// - public bool HasBreakWater - { - get - { - return BreakWater != null; - } - } } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs =================================================================== diff -u -rb46ee3c225852d985fdee6214e5f7cb298aef92e -raf50d3e2a0d74d0220363e7120c6fbf1923870f4 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs (.../DikeProfileTest.cs) (revision b46ee3c225852d985fdee6214e5f7cb298aef92e) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs (.../DikeProfileTest.cs) (revision af50d3e2a0d74d0220363e7120c6fbf1923870f4) @@ -45,17 +45,17 @@ Assert.IsInstanceOf(dikeProfile.CrestLevel); Assert.IsInstanceOf(dikeProfile.X0); + Assert.AreEqual("Dijkprofiel", dikeProfile.Name); + Assert.AreEqual(string.Empty, dikeProfile.Memo); Assert.AreSame(worldCoordinate, dikeProfile.WorldReferencePoint); + Assert.AreEqual(0.0, dikeProfile.X0); Assert.AreEqual(0.0, dikeProfile.Orientation.Value); Assert.AreEqual(2, dikeProfile.Orientation.NumberOfDecimalPlaces); - Assert.AreEqual(0.0, dikeProfile.X0); - Assert.AreEqual("Dijkprofiel", dikeProfile.Name); Assert.IsNull(dikeProfile.BreakWater); CollectionAssert.IsEmpty(dikeProfile.DikeGeometry); CollectionAssert.IsEmpty(dikeProfile.ForeshoreGeometry); Assert.AreEqual(0.0, dikeProfile.CrestLevel.Value); Assert.AreEqual(2, dikeProfile.CrestLevel.NumberOfDecimalPlaces); - Assert.AreEqual(string.Empty, dikeProfile.Memo); } [Test]