Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.IO/ClosingStructuresImporter.cs =================================================================== diff -u -rf28e5c177128224ea84257a3f29677f38b51f33f -r0e8c9f3912451d121375b590426837a3e6683dc5 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.IO/ClosingStructuresImporter.cs (.../ClosingStructuresImporter.cs) (revision f28e5c177128224ea84257a3f29677f38b51f33f) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.IO/ClosingStructuresImporter.cs (.../ClosingStructuresImporter.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.ClosingStructures.Data; using Ringtoets.Common.Data; @@ -39,8 +38,6 @@ /// public class ClosingStructuresImporter : StructuresImporter { - private readonly IStructureUpdateStrategy structureUpdateStrategy; - /// /// Creates a new instance of . /// @@ -56,27 +53,11 @@ string filePath, IImporterMessageProvider messageProvider, IStructureUpdateStrategy updateStrategy) - : base(importTarget, referenceLine, filePath, messageProvider, updateStrategy) - { - if (updateStrategy == null) - { - throw new ArgumentNullException(nameof(updateStrategy)); - } - structureUpdateStrategy = updateStrategy; - } + : base(importTarget, referenceLine, filePath, messageProvider, updateStrategy) {} - protected override IEnumerable UpdateWithCreatedStructures(ICollection structureLocations, - Dictionary> groupedStructureParameterRows) + protected override IEnumerable CreateStructures(IEnumerable structureLocations, + IDictionary> groupedStructureParameterRows) { - return structureUpdateStrategy.UpdateStructuresWithImportedData(ImportTarget, - CreateClosingStructures(structureLocations.ToList(), - groupedStructureParameterRows), - FilePath); - } - - private IEnumerable CreateClosingStructures(IEnumerable structureLocations, - IDictionary> groupedStructureParameterRows) - { var closingStructures = new List(); foreach (StructureLocation structureLocation in structureLocations) {