Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/FileImporters/HydraulicBoundaryDatabaseImporter.cs
===================================================================
diff -u -ra9aafffab97152303562110b1d789bacb465ce24 -rfc38d18fc6ff1749476da0ea43281d5d80568283
--- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/FileImporters/HydraulicBoundaryDatabaseImporter.cs (.../HydraulicBoundaryDatabaseImporter.cs) (revision a9aafffab97152303562110b1d789bacb465ce24)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/FileImporters/HydraulicBoundaryDatabaseImporter.cs (.../HydraulicBoundaryDatabaseImporter.cs) (revision fc38d18fc6ff1749476da0ea43281d5d80568283)
@@ -75,6 +75,7 @@
/// Gets the version of the database.
///
/// The database version.
+ /// Thrown when the version could not be obtained from the database.
public string GetHydraulicBoundaryDatabaseVersion()
{
return hydraulicBoundaryDatabaseReader.GetVersion();
@@ -84,10 +85,12 @@
/// Creates a new instance of , based upon the data read from
/// the hydraulic boundary database file, and saved into .
///
- /// to set the newly
+ /// to set the newly
/// created .
/// True if the import was successful, false otherwise.
- public bool Import(HydraulicBoundaryDatabaseContext targetItem)
+ /// The reader has not been initialized by calling
+ /// .
+ public bool Import(IAssessmentSection targetItem)
{
if (hydraulicBoundaryDatabaseReader == null)
{
@@ -101,7 +104,7 @@
return false;
}
- AddImportedDataToModel(targetItem.Parent, importResult);
+ AddImportedDataToModel(targetItem, importResult);
log.Info(Resources.HydraulicBoundaryDatabaseImporter_Import_All_hydraulic_locations_read);
return true;
}