Index: Ringtoets/Integration/test/Ringtoets.Integration.TestUtils/DataUpdateHelper.cs
===================================================================
diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r26f527fb809a2325c8f883ece9da01a8f8040eb3
--- Ringtoets/Integration/test/Ringtoets.Integration.TestUtils/DataUpdateHelper.cs (.../DataUpdateHelper.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9)
+++ Ringtoets/Integration/test/Ringtoets.Integration.TestUtils/DataUpdateHelper.cs (.../DataUpdateHelper.cs) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
@@ -24,9 +24,12 @@
using Core.Common.Utils.IO;
using Ringtoets.Common.Data.AssessmentSection;
using Ringtoets.Common.IO.FileImporters.MessageProviders;
+using Ringtoets.Common.IO.SoilProfile;
using Ringtoets.Integration.Data;
+using Ringtoets.MacroStabilityInwards.IO.Importers;
+using Ringtoets.MacroStabilityInwards.Plugin.FileImporter;
using Ringtoets.Piping.Data;
-using Ringtoets.Piping.IO.Importers;
+using Ringtoets.Piping.Data.SoilProfile;
using Ringtoets.Piping.Plugin.FileImporter;
namespace Ringtoets.Integration.TestUtils
@@ -37,7 +40,7 @@
public static class DataUpdateHelper
{
///
- /// Imports the data for the
+ /// Imports the data for the
/// of the given and updates existing data based upon the imported
/// data.
///
@@ -52,12 +55,13 @@
"DR6_updated.soil"))
{
string filePath = Path.Combine(embeddedResourceFileWriter.TargetFolderPath, "DR6_updated.soil");
- var activity = new FileImportActivity(new StochasticSoilModelImporter(
- assessmentSection.PipingFailureMechanism.StochasticSoilModels,
- filePath,
- new UpdateMessageProvider(),
- new StochasticSoilModelUpdateDataStrategy(assessmentSection.PipingFailureMechanism)),
- "StochasticSoilModelUpdater");
+ var activity = new FileImportActivity(
+ new StochasticSoilModelImporter(
+ assessmentSection.PipingFailureMechanism.StochasticSoilModels,
+ filePath,
+ new UpdateMessageProvider(),
+ StochasticSoilModelImporterConfigurationFactory.CreateUpdateStrategyConfiguration(assessmentSection.PipingFailureMechanism)),
+ "StochasticSoilModelUpdater");
activity.Run();
activity.Finish();
}
@@ -79,11 +83,11 @@
"DR6_updated.soil"))
{
string filePath = Path.Combine(embeddedResourceFileWriter.TargetFolderPath, "DR6_updated.soil");
- var activity = new FileImportActivity(new MacroStabilityInwards.IO.Importers.StochasticSoilModelImporter(
+ var activity = new FileImportActivity(new StochasticSoilModelImporter(
assessmentSection.MacroStabilityInwards.StochasticSoilModels,
filePath,
new UpdateMessageProvider(),
- new MacroStabilityInwards.Plugin.FileImporter.StochasticSoilModelUpdateDataStrategy(assessmentSection.MacroStabilityInwards)),
+ new StochasticSoilModelUpdateDataStrategy(assessmentSection.MacroStabilityInwards)),
"StochasticSoilModelUpdater");
activity.Run();
activity.Finish();