Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/IllustrationPointResult.cs =================================================================== diff -u -r0fd23ff8e68b5f0d18d344d104bc68216cb49b51 -r2bda1fe026b3f2c9bf6f4d0254e3292bbd887f78 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/IllustrationPointResult.cs (.../IllustrationPointResult.cs) (revision 0fd23ff8e68b5f0d18d344d104bc68216cb49b51) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/Output/IllustrationPoints/IllustrationPointResult.cs (.../IllustrationPointResult.cs) (revision 2bda1fe026b3f2c9bf6f4d0254e3292bbd887f78) @@ -19,6 +19,8 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; + namespace Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints { /// @@ -27,13 +29,31 @@ public class IllustrationPointResult { /// - /// Gets or sets the description. + /// Creates a new instance of . /// - public string Description { get; set; } + /// The description. + /// The output of the sub mechanism illustration point. + /// Thrown when + /// is null. + public IllustrationPointResult(string description, double value) + { + if (description == null) + { + throw new ArgumentNullException(nameof(description)); + } + Description = description; + Value = value; + } + /// - /// Gets or sets the value. + /// Gets the description. /// - public double Value { get; set; } = double.NaN; + public string Description { get; } + + /// + /// Gets the value. + /// + public double Value { get; } } } \ No newline at end of file