Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableAssessmentProcess.cs =================================================================== diff -u -ra30b67748bed77736f62b6b3c30c82649bb9cf4e -r1815be6776a818b0d390819ca63f89d3c5b78063 --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableAssessmentProcess.cs (.../SerializableAssessmentProcess.cs) (revision a30b67748bed77736f62b6b3c30c82649bb9cf4e) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableAssessmentProcess.cs (.../SerializableAssessmentProcess.cs) (revision 1815be6776a818b0d390819ca63f89d3c5b78063) @@ -21,6 +21,7 @@ using System; using System.Xml.Serialization; +using Ringtoets.AssemblyTool.IO.Model.Helpers; namespace Ringtoets.AssemblyTool.IO.Model { @@ -44,14 +45,14 @@ /// /// The unique ID of the assessment process. /// The assessment section this process belongs to. - /// Thrown when is null or empty. - /// Thrown when is null. + /// Thrown when any parameter is null. + /// Thrown when is invalid. public SerializableAssessmentProcess(string id, SerializableAssessmentSection assessmentSection) : this() { - if (string.IsNullOrEmpty(id)) + if (!IdValidator.Validate(id)) { - throw new ArgumentException($@"'{nameof(id)}' must have a value."); + throw new ArgumentException($@"'{nameof(id)}' must have a value and consist only of alphanumerical characters, '-', '_' or '.'."); } if (assessmentSection == null)