Index: Ringtoets/Piping/src/Ringtoets.Piping.Service/PipingSemiProbabilisticCalculationService.cs =================================================================== diff -u -re1705d17c577ac884869c00181cac52470cc50f2 -r845bead95b248fd299e02c02e9ae0892eebc6335 --- Ringtoets/Piping/src/Ringtoets.Piping.Service/PipingSemiProbabilisticCalculationService.cs (.../PipingSemiProbabilisticCalculationService.cs) (revision e1705d17c577ac884869c00181cac52470cc50f2) +++ Ringtoets/Piping/src/Ringtoets.Piping.Service/PipingSemiProbabilisticCalculationService.cs (.../PipingSemiProbabilisticCalculationService.cs) (revision 845bead95b248fd299e02c02e9ae0892eebc6335) @@ -1,6 +1,7 @@ using System; using MathNet.Numerics.Distributions; using Ringtoets.Piping.Data; +using Ringtoets.Piping.Service.Properties; namespace Ringtoets.Piping.Service { @@ -179,7 +180,7 @@ { if (!calculation.HasOutput) { - throw new ArgumentException("Cannot perform a semi-probabilistic calculation without output from the piping kernel."); + throw new ArgumentException(Resources.PipingSemiProbabilisticCalculationService_ValidateOutputOnCalculation_Factor_of_safety_cannot_be_calculated); } } Index: Ringtoets/Piping/src/Ringtoets.Piping.Service/Properties/Resources.Designer.cs =================================================================== diff -u -re568165b751acf8d72cdf0d128f76d7792dadb56 -r845bead95b248fd299e02c02e9ae0892eebc6335 --- Ringtoets/Piping/src/Ringtoets.Piping.Service/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision e568165b751acf8d72cdf0d128f76d7792dadb56) +++ Ringtoets/Piping/src/Ringtoets.Piping.Service/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 845bead95b248fd299e02c02e9ae0892eebc6335) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.17929 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -95,5 +95,15 @@ return ResourceManager.GetString("PipingCalculationService_ValidateInput_Cannot_determine_thickness_coverage_layer", resourceCulture); } } + + /// + /// Looks up a localized string similar to Veiligheidsfactor voor piping kan niet worden berekend.. + /// + internal static string PipingSemiProbabilisticCalculationService_ValidateOutputOnCalculation_Factor_of_safety_cannot_be_calculated { + get { + return ResourceManager.GetString("PipingSemiProbabilisticCalculationService_ValidateOutputOnCalculation_Factor_of_s" + + "afety_cannot_be_calculated", resourceCulture); + } + } } } Index: Ringtoets/Piping/src/Ringtoets.Piping.Service/Properties/Resources.resx =================================================================== diff -u -re568165b751acf8d72cdf0d128f76d7792dadb56 -r845bead95b248fd299e02c02e9ae0892eebc6335 --- Ringtoets/Piping/src/Ringtoets.Piping.Service/Properties/Resources.resx (.../Resources.resx) (revision e568165b751acf8d72cdf0d128f76d7792dadb56) +++ Ringtoets/Piping/src/Ringtoets.Piping.Service/Properties/Resources.resx (.../Resources.resx) (revision 845bead95b248fd299e02c02e9ae0892eebc6335) @@ -129,4 +129,7 @@ Kan de dikte van de deklaag niet afleiden op basis van de invoer. + + Veiligheidsfactor voor piping kan niet worden berekend. + \ No newline at end of file Index: Ringtoets/Piping/test/Ringtoets.Piping.Service.Test/PipingSemiProbabilisticCalculationServiceTest.cs =================================================================== diff -u -rd428a41a5451bcf43ee2ee5d489b122e0d0f4675 -r845bead95b248fd299e02c02e9ae0892eebc6335 --- Ringtoets/Piping/test/Ringtoets.Piping.Service.Test/PipingSemiProbabilisticCalculationServiceTest.cs (.../PipingSemiProbabilisticCalculationServiceTest.cs) (revision d428a41a5451bcf43ee2ee5d489b122e0d0f4675) +++ Ringtoets/Piping/test/Ringtoets.Piping.Service.Test/PipingSemiProbabilisticCalculationServiceTest.cs (.../PipingSemiProbabilisticCalculationServiceTest.cs) (revision 845bead95b248fd299e02c02e9ae0892eebc6335) @@ -224,7 +224,7 @@ TestDelegate test = () => PipingSemiProbabilisticCalculationService.Calculate(pipingCalculation, new PipingProbabilityAssessmentInput(), int.MinValue, double.NaN); // Assert - TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, "Cannot perform a semi-probabilistic calculation without output from the piping kernel."); + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, "Veiligheidsfactor voor piping kan niet worden berekend."); } private PipingCalculation AsPipingCalculation(PipingOutput pipingOutput)