Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresImporter.cs =================================================================== diff -u -r8e74b5d6680386fce48486c8253b62331f7d7055 -r5f48c2f099a9ffd0e55b86aea0b356a226a1918f --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresImporter.cs (.../HeightStructuresImporter.cs) (revision 8e74b5d6680386fce48486c8253b62331f7d7055) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresImporter.cs (.../HeightStructuresImporter.cs) (revision 5f48c2f099a9ffd0e55b86aea0b356a226a1918f) @@ -29,7 +29,6 @@ using Ringtoets.Common.IO.FileImporters.MessageProviders; using Ringtoets.Common.IO.Structures; using Ringtoets.HeightStructures.Data; -using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; namespace Ringtoets.HeightStructures.IO { @@ -39,34 +38,27 @@ /// public class HeightStructuresImporter : StructuresImporter> { - private readonly IImporterMessageProvider messageProvider; private readonly IStructureUpdateStrategy structureUpdateStrategy; /// /// Creates a new instance of . /// /// The height structures to import on. /// The reference line used to check if the - /// objects found in the file are intersecting it. + /// objects found in the file are intersecting it. /// The path to the file to import from. /// The message provider to provide messages during importer actions. /// The strategy to update the structures with imported data. /// Thrown when any of the input parameters is null. public HeightStructuresImporter(StructureCollection importTarget, ReferenceLine referenceLine, string filePath, IImporterMessageProvider messageProvider, IStructureUpdateStrategy structureUpdateStrategy) - : base(importTarget, referenceLine, filePath) + : base(importTarget, referenceLine, filePath, messageProvider) { - if (messageProvider == null) - { - throw new ArgumentNullException(nameof(messageProvider)); - } if (structureUpdateStrategy == null) { throw new ArgumentNullException(nameof(structureUpdateStrategy)); } - - this.messageProvider = messageProvider; this.structureUpdateStrategy = structureUpdateStrategy; } @@ -79,12 +71,6 @@ FilePath); } - protected override void LogImportCanceledMessage() - { - string message = messageProvider.GetCancelledLogMessageText(RingtoetsCommonDataResources.StructureCollection_TypeDescriptor); - Log.Info(message); - } - private IEnumerable CreateHeightStructures(IEnumerable structureLocations, IDictionary> groupedStructureParameterRows) {