Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresImporter.cs =================================================================== diff -u -rf28e5c177128224ea84257a3f29677f38b51f33f -r0e8c9f3912451d121375b590426837a3e6683dc5 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresImporter.cs (.../HeightStructuresImporter.cs) (revision f28e5c177128224ea84257a3f29677f38b51f33f) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresImporter.cs (.../HeightStructuresImporter.cs) (revision 0e8c9f3912451d121375b590426837a3e6683dc5) @@ -22,7 +22,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Core.Common.Base; using Core.Common.Base.Data; using Ringtoets.Common.Data; using Ringtoets.Common.Data.AssessmentSection; @@ -39,8 +38,6 @@ /// public class HeightStructuresImporter : StructuresImporter { - private readonly IStructureUpdateStrategy structureUpdateStrategy; - /// /// Creates a new instance of . /// @@ -54,27 +51,11 @@ public HeightStructuresImporter(StructureCollection importTarget, ReferenceLine referenceLine, string filePath, IImporterMessageProvider messageProvider, IStructureUpdateStrategy structureUpdateStrategy) - : base(importTarget, referenceLine, filePath, messageProvider, structureUpdateStrategy) - { - if (structureUpdateStrategy == null) - { - throw new ArgumentNullException(nameof(structureUpdateStrategy)); - } - this.structureUpdateStrategy = structureUpdateStrategy; - } + : base(importTarget, referenceLine, filePath, messageProvider, structureUpdateStrategy) {} - protected override IEnumerable UpdateWithCreatedStructures(ICollection structureLocations, - Dictionary> groupedStructureParameterRows) + protected override IEnumerable CreateStructures(IEnumerable structureLocations, + IDictionary> groupedStructureParameterRows) { - return structureUpdateStrategy.UpdateStructuresWithImportedData(ImportTarget, - CreateHeightStructures(structureLocations.ToList(), - groupedStructureParameterRows), - FilePath); - } - - private IEnumerable CreateHeightStructures(IEnumerable structureLocations, - IDictionary> groupedStructureParameterRows) - { var heightStructures = new List(); foreach (StructureLocation structureLocation in structureLocations) {