Index: Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IFailurePathEntity.cs
===================================================================
diff -u
--- Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IFailurePathEntity.cs (revision 0)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IFailurePathEntity.cs (revision c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060)
@@ -0,0 +1,71 @@
+// Copyright (C) Stichting Deltares 2021. 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.Collections.Generic;
+
+namespace Riskeer.Storage.Core.DbContext
+{
+ ///
+ /// Interface for an entity that contains failure path information.
+ ///
+ public interface IFailurePathEntity
+ {
+ ///
+ /// Gets or sets an indicator whether the failure path is part of the assembly.
+ ///
+ byte InAssembly { get; set; }
+
+ ///
+ /// Gets or sets the source path of the imported collection of failure mechanism sections.
+ ///
+ string FailureMechanismSectionCollectionSourcePath { get; set; }
+
+ ///
+ /// Gets or sets the comments associated with the input when it is part of the assembly.
+ ///
+ string InAssemblyInputComments { get; set; }
+
+ ///
+ /// Gets or sets the comments associated with the output when it is part of the assembly.
+ ///
+ string InAssemblyOutputComments { get; set; }
+
+ ///
+ /// Gets or sets the comments associated when the failure path is set to not be part of the assembly.
+ ///
+ string NotInAssemblyComments { get; set; }
+
+ ///
+ /// Gets or sets the collection of .
+ ///
+ ICollection FailureMechanismSectionEntities { get; set; }
+
+ ///
+ /// Gets or sets the failure path assembly probability result type.
+ ///
+ byte FailurePathAssemblyProbabilityResultType { get; set; }
+
+ ///
+ /// Gets or sets the manual failure path assembly probability.
+ ///
+ double? ManualFailurePathAssemblyProbability { get; set; }
+ }
+}
\ No newline at end of file
Fisheye: Tag c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060 refers to a dead (removed) revision in file `Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Interfaces/IHasFailurePathAssemblyResultEntity.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialFailureMechanismEntity.cs
===================================================================
diff -u -r63f409f51c1fd94e77f3c6e8fa12ec407b1eda98 -rc75d8f1dc12bfd0f3fb66a88f19742f6b59cd060
--- Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialFailureMechanismEntity.cs (.../PartialFailureMechanismEntity.cs) (revision 63f409f51c1fd94e77f3c6e8fa12ec407b1eda98)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialFailureMechanismEntity.cs (.../PartialFailureMechanismEntity.cs) (revision c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060)
@@ -23,7 +23,7 @@
{
///
/// Partial implementation of that implements a
- /// .
+ /// .
///
- public partial class FailureMechanismEntity : IHasFailurePathAssemblyResultEntity {}
+ public partial class FailureMechanismEntity : IFailurePathEntity {}
}
\ No newline at end of file
Index: Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialSpecificFailurePathEntity.cs
===================================================================
diff -u -r63f409f51c1fd94e77f3c6e8fa12ec407b1eda98 -rc75d8f1dc12bfd0f3fb66a88f19742f6b59cd060
--- Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialSpecificFailurePathEntity.cs (.../PartialSpecificFailurePathEntity.cs) (revision 63f409f51c1fd94e77f3c6e8fa12ec407b1eda98)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/DbContext/Partials/PartialSpecificFailurePathEntity.cs (.../PartialSpecificFailurePathEntity.cs) (revision c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060)
@@ -23,7 +23,7 @@
{
///
/// Partial implementation of that implements a
- /// .
+ /// .
///
- public partial class SpecificFailurePathEntity : IHasFailurePathAssemblyResultEntity {}
+ public partial class SpecificFailurePathEntity : IFailurePathEntity {}
}
\ No newline at end of file
Index: Riskeer/Storage/src/Riskeer.Storage.Core/Read/FailurePathAssemblyResultEntityReadExtensions.cs
===================================================================
diff -u -rcd9917aa7aad303a58eae5ca1fac7e4ac7e54ded -rc75d8f1dc12bfd0f3fb66a88f19742f6b59cd060
--- Riskeer/Storage/src/Riskeer.Storage.Core/Read/FailurePathAssemblyResultEntityReadExtensions.cs (.../FailurePathAssemblyResultEntityReadExtensions.cs) (revision cd9917aa7aad303a58eae5ca1fac7e4ac7e54ded)
+++ Riskeer/Storage/src/Riskeer.Storage.Core/Read/FailurePathAssemblyResultEntityReadExtensions.cs (.../FailurePathAssemblyResultEntityReadExtensions.cs) (revision c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060)
@@ -27,18 +27,18 @@
{
///
/// This class defines extension methods for read operations for a based on the
- ///
+ ///
///
internal static class FailurePathAssemblyResultEntityReadExtensions
{
///
- /// Reads the and uses the information to update the .
+ /// Reads the and uses the information to update the .
///
- /// The to update
+ /// The to update
/// for.
/// The to update.
/// Thrown when any argument is null.
- internal static void Read(this IHasFailurePathAssemblyResultEntity entity,
+ internal static void Read(this IFailurePathEntity entity,
FailurePathAssemblyResult assemblyResult)
{
if (entity == null)
Index: Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailurePathAssemblyResultEntityReadExtensionsTest.cs
===================================================================
diff -u -rcd9917aa7aad303a58eae5ca1fac7e4ac7e54ded -rc75d8f1dc12bfd0f3fb66a88f19742f6b59cd060
--- Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailurePathAssemblyResultEntityReadExtensionsTest.cs (.../FailurePathAssemblyResultEntityReadExtensionsTest.cs) (revision cd9917aa7aad303a58eae5ca1fac7e4ac7e54ded)
+++ Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailurePathAssemblyResultEntityReadExtensionsTest.cs (.../FailurePathAssemblyResultEntityReadExtensionsTest.cs) (revision c75d8f1dc12bfd0f3fb66a88f19742f6b59cd060)
@@ -39,7 +39,7 @@
var assemblyResult = new FailurePathAssemblyResult();
// Call
- void Call() => ((IHasFailurePathAssemblyResultEntity) null).Read(assemblyResult);
+ void Call() => ((IFailurePathEntity) null).Read(assemblyResult);
// Assert
var exception = Assert.Throws(Call);
@@ -51,7 +51,7 @@
{
// Setup
var mocks = new MockRepository();
- var entity = mocks.Stub();
+ var entity = mocks.Stub();
mocks.ReplayAll();
// Call
@@ -73,7 +73,7 @@
double probability = random.NextDouble();
var mocks = new MockRepository();
- var entity = mocks.Stub();
+ var entity = mocks.Stub();
mocks.ReplayAll();
entity.FailurePathAssemblyProbabilityResultType = Convert.ToByte(resultType);