Index: Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/StochastConverter.cs =================================================================== diff -u -rbe6a13ac1251d94b796612190233ac7a380b328e -re2e6db0810ded8ad8c1e6b14a48296f6914954dc --- Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/StochastConverter.cs (.../StochastConverter.cs) (revision be6a13ac1251d94b796612190233ac7a380b328e) +++ Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/StochastConverter.cs (.../StochastConverter.cs) (revision e2e6db0810ded8ad8c1e6b14a48296f6914954dc) @@ -45,8 +45,7 @@ { throw new ArgumentNullException(nameof(hydraStochast)); } - int stochastDuration = Convert.ToInt32(hydraStochast.Duration); - return new Stochast(hydraStochast.Name, stochastDuration, hydraStochast.Alpha); + return new Stochast(hydraStochast.Name, hydraStochast.Duration, hydraStochast.Alpha); } /// @@ -63,9 +62,8 @@ { throw new ArgumentNullException(nameof(hydraRealizedStochast)); } - int stochastDuration = Convert.ToInt32(hydraRealizedStochast.Duration); return new RealizedStochast(hydraRealizedStochast.Name, - stochastDuration, + hydraRealizedStochast.Duration, hydraRealizedStochast.Alpha, hydraRealizedStochast.Realization); }