Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/SoilUtils.cs
===================================================================
diff -u -r6724 -r6731
--- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/SoilUtils.cs (.../SoilUtils.cs) (revision 6724)
+++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/SoilUtils.cs (.../SoilUtils.cs) (revision 6731)
@@ -28,7 +28,8 @@
namespace Deltares.Dam.Data
{
///
- /// SoilUtils contains some general utility functions that were moved here from the Soil class (also used by DAM) as they are considered obsolete
+ /// SoilUtils contains some general utility functions that were moved here from the Soil class (also used by DAM) as they are considered obsolete.
+ /// Afterwards this was moved here from DSL-GeoIo, to make DSL-GeoIo redundant.
///
public static class SoilUtils
{
Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data.Tests/SoilUtilsTests.cs
===================================================================
diff -u
--- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data.Tests/SoilUtilsTests.cs (revision 0)
+++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data.Tests/SoilUtilsTests.cs (revision 6731)
@@ -0,0 +1,60 @@
+// Copyright (C) Stichting Deltares 2025. All rights reserved.
+//
+// This file is part of the application DAM - UI.
+//
+// DAM - UI is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using Deltares.Geotechnics.Soils;
+using NUnit.Framework;
+
+namespace Deltares.Dam.Data.Tests
+{
+ // this was moved here from DSL-GeoIo, to make DSL-GeoIo redundant
+ [TestFixture]
+ public class SoilUtilsTests
+ {
+ [Test]
+ public void CheckNameValuePairGetSet()
+ {
+ var expectedSoil = new Soil
+ {
+ Name = "Sand",
+ DiameterD70 = 1
+ };
+ Dictionary nameValuePairs = SoilUtils.GetParametersAsNameValuePairs(expectedSoil);
+ var actualSoil = new Soil();
+ foreach (KeyValuePair soilDetail in nameValuePairs)
+ {
+ SoilUtils.SetParameterFromNameValuePair(actualSoil, soilDetail.Key, soilDetail.Value);
+ }
+
+ Assert.That(actualSoil.DiameterD70, Is.EqualTo(expectedSoil.DiameterD70));
+
+ expectedSoil.DiameterD70 = 20;
+ nameValuePairs = SoilUtils.GetParametersAsNameValuePairs(expectedSoil);
+ actualSoil = new Soil();
+ foreach (KeyValuePair soilDetail in nameValuePairs)
+ {
+ SoilUtils.SetParameterFromNameValuePair(actualSoil, soilDetail.Key, soilDetail.Value);
+ }
+
+ Assert.That(actualSoil.DiameterD70, Is.EqualTo(expectedSoil.DiameterD70));
+ }
+ }
+}
\ No newline at end of file
Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/SoilParameterNames.cs
===================================================================
diff -u -r6724 -r6731
--- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/SoilParameterNames.cs (.../SoilParameterNames.cs) (revision 6724)
+++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/SoilParameterNames.cs (.../SoilParameterNames.cs) (revision 6731)
@@ -23,6 +23,7 @@
{
///
/// Soil Parameter Names (String constants)
+ /// This was moved here from DSL-GeoIo, to make DSL-GeoIo redundant.
///
public static class SoilParameterNames
{