Index: Ringtoets/Integration/test/Ringtoets.Integration.TestUtils/DataUpdateHelper.cs =================================================================== diff -u -r802ea30d1fe8fbae93e58dff9ab054dbabca11ae -r650fc7b43cb6729baee51d079f0377df8d7a3de9 --- Ringtoets/Integration/test/Ringtoets.Integration.TestUtils/DataUpdateHelper.cs (.../DataUpdateHelper.cs) (revision 802ea30d1fe8fbae93e58dff9ab054dbabca11ae) +++ Ringtoets/Integration/test/Ringtoets.Integration.TestUtils/DataUpdateHelper.cs (.../DataUpdateHelper.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) @@ -62,5 +62,32 @@ activity.Finish(); } } + + /// + /// Imports the data for the + /// of the given and updates existing data based upon the imported + /// data. + /// + /// The to import on. + /// When data from is added first, + /// then calling this method will remove soil model 'PK001_0004_Piping', stochastic soil profile 'W1-6_4_1D1' + /// and update the probability of stochastic soil profile '6-3_22' (100% to 50%). + public static void UpdateMacroStabilityInwardsStochasticSoilModels(AssessmentSection assessmentSection) + { + using (var embeddedResourceFileWriter = new EmbeddedResourceFileWriter(typeof(DataUpdateHelper).Assembly, + true, + "DR6_updated.soil")) + { + string filePath = Path.Combine(embeddedResourceFileWriter.TargetFolderPath, "DR6_updated.soil"); + var activity = new FileImportActivity(new MacroStabilityInwards.IO.Importers.StochasticSoilModelImporter( + assessmentSection.MacroStabilityInwards.StochasticSoilModels, + filePath, + new UpdateMessageProvider(), + new MacroStabilityInwards.Plugin.FileImporter.StochasticSoilModelUpdateDataStrategy(assessmentSection.MacroStabilityInwards)), + "StochasticSoilModelUpdater"); + activity.Run(); + activity.Finish(); + } + } } } \ No newline at end of file