Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Factories/PersistableStateFactory.cs
===================================================================
diff -u -rb9ceec3c71d972d3d467c1520033ac48cf77b2e9 -r4809ee4ed62e50c5c02845e0618325a33d302032
--- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Factories/PersistableStateFactory.cs (.../PersistableStateFactory.cs) (revision b9ceec3c71d972d3d467c1520033ac48cf77b2e9)
+++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Factories/PersistableStateFactory.cs (.../PersistableStateFactory.cs) (revision 4809ee4ed62e50c5c02845e0618325a33d302032)
@@ -28,6 +28,7 @@
using Core.Common.Geometry;
using Riskeer.Common.Data.Probabilistics;
using Riskeer.MacroStabilityInwards.Data.SoilProfile;
+using Riskeer.MacroStabilityInwards.IO.Properties;
using Riskeer.MacroStabilityInwards.Primitives;
namespace Riskeer.MacroStabilityInwards.IO.Factories
@@ -104,7 +105,7 @@
LayerId = registry.GeometryLayers[stageType][layer],
Point = CreatePoint(layer),
Stress = CreateStress(layer.Data),
- Label = string.Empty
+ Label = string.Format(Resources.PersistableStateFactory_CreateStatePoint_POP_LayerName_0, layer.Data.MaterialName)
};
}
Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Properties/Resources.Designer.cs
===================================================================
diff -u -rd4fc5442e4e11000e96048c433a3bc48783874d1 -r4809ee4ed62e50c5c02845e0618325a33d302032
--- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision d4fc5442e4e11000e96048c433a3bc48783874d1)
+++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 4809ee4ed62e50c5c02845e0618325a33d302032)
@@ -372,6 +372,15 @@
}
///
+ /// Looks up a localized string similar to POP - {0}.
+ ///
+ public static string PersistableStateFactory_CreateStatePoint_POP_LayerName_0 {
+ get {
+ return ResourceManager.GetString("PersistableStateFactory_CreateStatePoint_POP_LayerName_0", resourceCulture);
+ }
+ }
+
+ ///
/// Looks up a localized string similar to Onverzadigd gewicht.
///
public static string SoilLayerData_AbovePhreaticLevelDistribution_Description {
Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Properties/Resources.resx
===================================================================
diff -u -rd4fc5442e4e11000e96048c433a3bc48783874d1 -r4809ee4ed62e50c5c02845e0618325a33d302032
--- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Properties/Resources.resx (.../Resources.resx) (revision d4fc5442e4e11000e96048c433a3bc48783874d1)
+++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Properties/Resources.resx (.../Resources.resx) (revision 4809ee4ed62e50c5c02845e0618325a33d302032)
@@ -226,4 +226,7 @@
Gegevens van '{0}' zijn geëxporteerd naar bestand '{1}'.
+
+ POP - {0}
+
\ No newline at end of file
Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.IO.TestUtil/PersistableDataModelTestHelper.cs
===================================================================
diff -u -rb9ceec3c71d972d3d467c1520033ac48cf77b2e9 -r4809ee4ed62e50c5c02845e0618325a33d302032
--- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.IO.TestUtil/PersistableDataModelTestHelper.cs (.../PersistableDataModelTestHelper.cs) (revision b9ceec3c71d972d3d467c1520033ac48cf77b2e9)
+++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.IO.TestUtil/PersistableDataModelTestHelper.cs (.../PersistableDataModelTestHelper.cs) (revision 4809ee4ed62e50c5c02845e0618325a33d302032)
@@ -1,4 +1,4 @@
-// Copyright (C) Stichting Deltares 2019. All rights reserved.
+// Copyright (C) Stichting Deltares 2019. All rights reserved.
//
// This file is part of Riskeer.
//
@@ -424,7 +424,7 @@
PersistableStatePoint statePoint = state.StatePoints.ElementAt(j);
Assert.IsNotNull(statePoint.Id);
- Assert.IsEmpty(statePoint.Label);
+ Assert.AreEqual($"POP - {layerWithPop.Data.MaterialName}", statePoint.Label);
Assert.IsNotNull(statePoint.LayerId);
Assert.IsTrue(statePoint.IsProbabilistic);