Index: Riskeer/Piping/src/Riskeer.Piping.Plugin/FileImporter/PipingFailureMechanismSectionUpdateStrategy.cs =================================================================== diff -u --- Riskeer/Piping/src/Riskeer.Piping.Plugin/FileImporter/PipingFailureMechanismSectionUpdateStrategy.cs (revision 0) +++ Riskeer/Piping/src/Riskeer.Piping.Plugin/FileImporter/PipingFailureMechanismSectionUpdateStrategy.cs (revision 41c45fc63fee8f2b180a8f847f9702443d91685f) @@ -0,0 +1,46 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Riskeer.Common.IO.FileImporters; +using Riskeer.Piping.Data; + +namespace Riskeer.Piping.Plugin.FileImporter +{ + /// + /// An that can be used to update + /// piping failure mechanism sections with imported failure mechanism sections. + /// + public class PipingFailureMechanismSectionUpdateStrategy : FailureMechanismSectionUpdateStrategy + { + /// + /// Creates a new instance of . + /// + /// The to update the sections for. + /// The + /// to use when updating the section results. + /// Thrown when any parameter is null. + public PipingFailureMechanismSectionUpdateStrategy( + PipingFailureMechanism failureMechanism, + PipingFailureMechanismSectionResultUpdateStrategy sectionResultUpdateStrategy) + : base(failureMechanism, sectionResultUpdateStrategy) {} + } +} \ No newline at end of file Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/FileImporter/PipingFailureMechanismSectionUpdateStrategyTest.cs =================================================================== diff -u --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/FileImporter/PipingFailureMechanismSectionUpdateStrategyTest.cs (revision 0) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/FileImporter/PipingFailureMechanismSectionUpdateStrategyTest.cs (revision 41c45fc63fee8f2b180a8f847f9702443d91685f) @@ -0,0 +1,42 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using NUnit.Framework; +using Riskeer.Common.IO.FileImporters; +using Riskeer.Piping.Data; +using Riskeer.Piping.Plugin.FileImporter; + +namespace Riskeer.Piping.Plugin.Test.FileImporter +{ + [TestFixture] + public class PipingFailureMechanismSectionUpdateStrategyTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var updateStrategy = new PipingFailureMechanismSectionUpdateStrategy(new PipingFailureMechanism(), new PipingFailureMechanismSectionResultUpdateStrategy()); + + // Assert + Assert.IsInstanceOf>(updateStrategy); + } + } +} \ No newline at end of file