Index: Ringtoets/Common/src/Ringtoets.Common.Data/AssessmentSectionBase.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Data/AssessmentSectionBase.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Data/AssessmentSectionBase.cs (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -0,0 +1,75 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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.Collections.Generic; + +using Core.Common.Base; +using Core.Common.Base.Storage; + +using Ringtoets.Common.Data.Contribution; +using Ringtoets.HydraRing.Data; + +namespace Ringtoets.Common.Data +{ + /// + /// Base implementation of assessment sections. + /// + public abstract class AssessmentSectionBase : Observable, IStorable + { + /// + /// Initializes a new instance of the class. + /// + protected AssessmentSectionBase() + { + Name = ""; + } + + /// + /// Gets or sets the name of the assessment section. + /// + public string Name { get; set; } + + /// + /// Gets or sets the reference line defining the geometry of the dike assessment section. + /// + public ReferenceLine ReferenceLine { get; set; } + + /// + /// Gets or sets the contribution of each failure mechanism available in this assessment section. + /// + public FailureMechanismContribution FailureMechanismContribution { get; protected set; } + + /// + /// Gets or sets the hydraulic boundary database. + /// + public HydraulicBoundaryDatabase HydraulicBoundaryDatabase { get; set; } + + /// + /// Gets the failure mechanisms corresponding to the assessment section. + /// + public abstract IEnumerable GetFailureMechanisms(); + + /// + /// Gets or sets the unique identifier for the storage of the class. + /// + public long StorageId { get; set; } + } +} \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj =================================================================== diff -u -rd971fe1df4d36020e33ad952830f71a9a605d860 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision d971fe1df4d36020e33ad952830f71a9a605d860) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -39,6 +39,7 @@ Properties\GlobalAssembly.cs + Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssessmentSectionBaseTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssessmentSectionBaseTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssessmentSectionBaseTest.cs (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; + +using Core.Common.Base; + +using NUnit.Framework; + +namespace Ringtoets.Common.Data.Test +{ + [TestFixture] + public class AssessmentSectionBaseTest + { + [Test] + public void DefaultConstructor_ExpectedValue() + { + // Call + var assessmentSection = new SimpleAssessmentSection(); + + // Assert + Assert.IsInstanceOf(assessmentSection); + Assert.AreEqual(String.Empty, assessmentSection.Name); + Assert.IsNull(assessmentSection.ReferenceLine); + Assert.IsNull(assessmentSection.FailureMechanismContribution); + Assert.IsNull(assessmentSection.HydraulicBoundaryDatabase); + } + + [Test] + public void SimpleProperties_SetNewValue_GetNewlySetValue() + { + // Setup + var assessmentSection = new SimpleAssessmentSection(); + + var newReferenceLine = new ReferenceLine(); + + // Call + assessmentSection.ReferenceLine = newReferenceLine; + + // Assert + Assert.AreSame(newReferenceLine, assessmentSection.ReferenceLine); + } + + private class SimpleAssessmentSection : AssessmentSectionBase { + public override IEnumerable GetFailureMechanisms() + { + throw new NotImplementedException(); + } + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj =================================================================== diff -u -rd1565906db90df7be4365d277d5ff22dc2d77a82 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision d1565906db90df7be4365d277d5ff22dc2d77a82) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -52,6 +52,7 @@ + @@ -69,6 +70,10 @@ {D749EE4C-CE50-4C17-BF01-9A953028C126} Core.Common.TestUtil + + {70f8cc9c-5bc8-4fb2-b201-eae7fa8088c2} + Ringtoets.HydraRing.Data + {d4200f43-3f72-4f42-af0a-8ced416a38ec} Ringtoets.Common.Data Fisheye: Tag 0e801c8485332bd9cdd1a907619f1f93e495ba4c refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Data/AssessmentSectionBase.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Integration/src/Ringtoets.Integration.Data/Ringtoets.Integration.Data.csproj =================================================================== diff -u -rd1565906db90df7be4365d277d5ff22dc2d77a82 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/src/Ringtoets.Integration.Data/Ringtoets.Integration.Data.csproj (.../Ringtoets.Integration.Data.csproj) (revision d1565906db90df7be4365d277d5ff22dc2d77a82) +++ Ringtoets/Integration/src/Ringtoets.Integration.Data/Ringtoets.Integration.Data.csproj (.../Ringtoets.Integration.Data.csproj) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -40,7 +40,6 @@ Properties\GlobalAssembly.cs - Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabaseContext.cs =================================================================== diff -u -r2ad324afda61327592af1226a9d8d3de01b614be -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabaseContext.cs (.../HydraulicBoundaryDatabaseContext.cs) (revision 2ad324afda61327592af1226a9d8d3de01b614be) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabaseContext.cs (.../HydraulicBoundaryDatabaseContext.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -23,6 +23,7 @@ using Core.Common.Base; +using Ringtoets.Common.Data; using Ringtoets.HydraRing.Data; using Ringtoets.Integration.Data; Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/AssessmentSectionBaseProperties.cs =================================================================== diff -u -r4512af7782ee31b36941bb280b54d9da2953dd71 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/AssessmentSectionBaseProperties.cs (.../AssessmentSectionBaseProperties.cs) (revision 4512af7782ee31b36941bb280b54d9da2953dd71) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/AssessmentSectionBaseProperties.cs (.../AssessmentSectionBaseProperties.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -23,6 +23,7 @@ using Core.Common.Gui.PropertyBag; using Core.Common.Utils.Attributes; +using Ringtoets.Common.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Forms.Properties; Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssessmentSectionView.cs =================================================================== diff -u -r07955a5bcecef8840417a57c6a704ef788533581 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssessmentSectionView.cs (.../AssessmentSectionView.cs) (revision 07955a5bcecef8840417a57c6a704ef788533581) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssessmentSectionView.cs (.../AssessmentSectionView.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -28,6 +28,8 @@ using Core.Components.Gis; using Core.Components.Gis.Data; using Core.Plugins.DotSpatial.Forms; + +using Ringtoets.Common.Data; using Ringtoets.Integration.Data; namespace Ringtoets.Integration.Forms.Views Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/FileImporters/HydraulicBoundaryDatabaseImporter.cs =================================================================== diff -u -r2ad324afda61327592af1226a9d8d3de01b614be -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/FileImporters/HydraulicBoundaryDatabaseImporter.cs (.../HydraulicBoundaryDatabaseImporter.cs) (revision 2ad324afda61327592af1226a9d8d3de01b614be) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/FileImporters/HydraulicBoundaryDatabaseImporter.cs (.../HydraulicBoundaryDatabaseImporter.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -25,6 +25,7 @@ using log4net; +using Ringtoets.Common.Data; using Ringtoets.HydraRing.Data; using Ringtoets.HydraRing.IO; using Ringtoets.Integration.Data; Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsApplicationPlugin.cs =================================================================== diff -u -r249fd5e4604012895724a9d7df67201332c9e7dc -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsApplicationPlugin.cs (.../RingtoetsApplicationPlugin.cs) (revision 249fd5e4604012895724a9d7df67201332c9e7dc) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsApplicationPlugin.cs (.../RingtoetsApplicationPlugin.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -24,6 +24,8 @@ using Core.Common.Base.Data; using Core.Common.Base.IO; using Core.Common.Base.Plugin; + +using Ringtoets.Common.Data; using Ringtoets.Common.Forms.Helpers; using Ringtoets.Integration.Data; using Ringtoets.Integration.Plugin.FileImporters; Fisheye: Tag 0e801c8485332bd9cdd1a907619f1f93e495ba4c refers to a dead (removed) revision in file `Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/AssessmentSectionBaseTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DikeAssessmentSectionTest.cs =================================================================== diff -u -rd1565906db90df7be4365d277d5ff22dc2d77a82 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DikeAssessmentSectionTest.cs (.../DikeAssessmentSectionTest.cs) (revision d1565906db90df7be4365d277d5ff22dc2d77a82) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DikeAssessmentSectionTest.cs (.../DikeAssessmentSectionTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -2,6 +2,7 @@ using Core.Common.Base; using NUnit.Framework; +using Ringtoets.Common.Data; using Ringtoets.Common.Data.Contribution; using Ringtoets.Piping.Data; Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DuneAssessmentSectionTest.cs =================================================================== diff -u -rd1565906db90df7be4365d277d5ff22dc2d77a82 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DuneAssessmentSectionTest.cs (.../DuneAssessmentSectionTest.cs) (revision d1565906db90df7be4365d277d5ff22dc2d77a82) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DuneAssessmentSectionTest.cs (.../DuneAssessmentSectionTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -2,6 +2,7 @@ using Core.Common.Base; using NUnit.Framework; +using Ringtoets.Common.Data; using Ringtoets.Common.Data.Contribution; using RingtoetsIntegrationResources = Ringtoets.Integration.Data.Properties.Resources; Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Ringtoets.Integration.Data.Test.csproj =================================================================== diff -u -rd1565906db90df7be4365d277d5ff22dc2d77a82 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Ringtoets.Integration.Data.Test.csproj (.../Ringtoets.Integration.Data.Test.csproj) (revision d1565906db90df7be4365d277d5ff22dc2d77a82) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Ringtoets.Integration.Data.Test.csproj (.../Ringtoets.Integration.Data.Test.csproj) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -52,7 +52,6 @@ - Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/HydraulicBoundaryDatabaseContextTest.cs =================================================================== diff -u -r2ad324afda61327592af1226a9d8d3de01b614be -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/HydraulicBoundaryDatabaseContextTest.cs (.../HydraulicBoundaryDatabaseContextTest.cs) (revision 2ad324afda61327592af1226a9d8d3de01b614be) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PresentationObjects/HydraulicBoundaryDatabaseContextTest.cs (.../HydraulicBoundaryDatabaseContextTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -27,6 +27,7 @@ using Rhino.Mocks; +using Ringtoets.Common.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Forms.PresentationObjects; Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DikeAssessmentSectionPropertiesTest.cs =================================================================== diff -u -r9745cf23c0ce16a076f08ce8ed726882c490c646 -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DikeAssessmentSectionPropertiesTest.cs (.../DikeAssessmentSectionPropertiesTest.cs) (revision 9745cf23c0ce16a076f08ce8ed726882c490c646) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DikeAssessmentSectionPropertiesTest.cs (.../DikeAssessmentSectionPropertiesTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -2,6 +2,8 @@ using Core.Common.Gui.PropertyBag; using NUnit.Framework; using Rhino.Mocks; + +using Ringtoets.Common.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Forms.PropertyClasses; Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryDatabasePropertiesTest.cs =================================================================== diff -u -r2ad324afda61327592af1226a9d8d3de01b614be -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryDatabasePropertiesTest.cs (.../HydraulicBoundaryDatabasePropertiesTest.cs) (revision 2ad324afda61327592af1226a9d8d3de01b614be) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryDatabasePropertiesTest.cs (.../HydraulicBoundaryDatabasePropertiesTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -23,6 +23,8 @@ using Core.Common.Gui.PropertyBag; using NUnit.Framework; using Rhino.Mocks; + +using Ringtoets.Common.Data; using Ringtoets.HydraRing.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Forms.PresentationObjects; Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs =================================================================== diff -u -r2ad324afda61327592af1226a9d8d3de01b614be -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision 2ad324afda61327592af1226a9d8d3de01b614be) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -8,6 +8,8 @@ using NUnit.Extensions.Forms; using NUnit.Framework; using Rhino.Mocks; + +using Ringtoets.Common.Data; using Ringtoets.HydraRing.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Forms.PresentationObjects; Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/FileImporters/HydraulicBoundaryDatabaseImporterTest.cs =================================================================== diff -u -r2ad324afda61327592af1226a9d8d3de01b614be -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/FileImporters/HydraulicBoundaryDatabaseImporterTest.cs (.../HydraulicBoundaryDatabaseImporterTest.cs) (revision 2ad324afda61327592af1226a9d8d3de01b614be) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/FileImporters/HydraulicBoundaryDatabaseImporterTest.cs (.../HydraulicBoundaryDatabaseImporterTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -32,6 +32,7 @@ using Rhino.Mocks; +using Ringtoets.Common.Data; using Ringtoets.HydraRing.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Forms.PresentationObjects; Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsApplicationPluginTest.cs =================================================================== diff -u -r249fd5e4604012895724a9d7df67201332c9e7dc -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsApplicationPluginTest.cs (.../RingtoetsApplicationPluginTest.cs) (revision 249fd5e4604012895724a9d7df67201332c9e7dc) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsApplicationPluginTest.cs (.../RingtoetsApplicationPluginTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -4,6 +4,8 @@ using Core.Common.Base.Plugin; using Core.Common.TestUtil; using NUnit.Framework; + +using Ringtoets.Common.Data; using Ringtoets.Integration.Data; using Ringtoets.Integration.Plugin.FileImporters; Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsGuiPluginTest.cs =================================================================== diff -u -r2ad324afda61327592af1226a9d8d3de01b614be -r0e801c8485332bd9cdd1a907619f1f93e495ba4c --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsGuiPluginTest.cs (.../RingtoetsGuiPluginTest.cs) (revision 2ad324afda61327592af1226a9d8d3de01b614be) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsGuiPluginTest.cs (.../RingtoetsGuiPluginTest.cs) (revision 0e801c8485332bd9cdd1a907619f1f93e495ba4c) @@ -9,6 +9,7 @@ using NUnit.Framework; using Rhino.Mocks; +using Ringtoets.Common.Data; using Ringtoets.Common.Data.Contribution; using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.Placeholder;