Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableTotalAssemblyResult.cs
===================================================================
diff -u -rd3b53b68914f5cead6eaf7b008168b29b2bd5754 -ra30b67748bed77736f62b6b3c30c82649bb9cf4e
--- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableTotalAssemblyResult.cs (.../SerializableTotalAssemblyResult.cs) (revision d3b53b68914f5cead6eaf7b008168b29b2bd5754)
+++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableTotalAssemblyResult.cs (.../SerializableTotalAssemblyResult.cs) (revision a30b67748bed77736f62b6b3c30c82649bb9cf4e)
@@ -44,16 +44,17 @@
/// The assembly result for failure mechanisms with a probability.
/// The assembly result for failure mechanisms without a probability.
/// The assembly result for the assessment section.
- /// Thrown when any parameter is null.
+ /// Thrown when is null or empty.
+ /// Thrown when any parameter except is null.
public SerializableTotalAssemblyResult(string id,
SerializableAssessmentProcess assessmentProcess,
SerializableFailureMechanismAssemblyResult assemblyResultWithoutProbability,
SerializableFailureMechanismAssemblyResult assemblyResultWithProbability,
SerializableAssessmentSectionAssemblyResult assessmentSectionAssemblyResult) : this()
{
- if (id == null)
+ if (string.IsNullOrEmpty(id))
{
- throw new ArgumentNullException(nameof(id));
+ throw new ArgumentException($@"'{nameof(id)}' must have a value.");
}
if (assessmentProcess == null)