Index: DamEngine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs
===================================================================
diff -u -r6216 -r6222
--- DamEngine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs (.../ConversionHelper.cs) (revision 6216)
+++ DamEngine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs (.../ConversionHelper.cs) (revision 6222)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using System.Collections.Generic;
using Deltares.DamEngine.Data.General;
using Deltares.DamEngine.Data.General.Sensors;
@@ -1344,6 +1345,10 @@
/// Type of the output object.
public static OperationalStaticDataFailureMechanismSystemType ConvertToOutputOperationalFailureMechanismSystemType(FailureMechanismSystemType failureMechanismSystemType)
{
+ if (failureMechanismSystemType == FailureMechanismSystemType.Piping)
+ {
+ throw new NotImplementedException("Piping is not a valid failure mechanism system type for operational static data.");
+ }
var translationTable = new Dictionary
{
{
@@ -1353,6 +1358,7 @@
FailureMechanismSystemType.StabilityOutside, OperationalStaticDataFailureMechanismSystemType.StabilityOutside
}
};
+ var test = translationTable[failureMechanismSystemType];
return translationTable[failureMechanismSystemType];
}