Index: Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/GeneralResultConverter.cs
===================================================================
diff -u -rc2c7e9621863d470ddd3a1d5c0e4913844066aae -r7f4eb38b0c9023e8a66cbce632cd10a16ef9e4bb
--- Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/GeneralResultConverter.cs (.../GeneralResultConverter.cs) (revision c2c7e9621863d470ddd3a1d5c0e4913844066aae)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/GeneralResultConverter.cs (.../GeneralResultConverter.cs) (revision 7f4eb38b0c9023e8a66cbce632cd10a16ef9e4bb)
@@ -23,56 +23,56 @@
using System.Collections.Generic;
using System.Linq;
using Ringtoets.Common.Data.Hydraulics.IllustrationPoints;
-using HydraWindDirectionClosingSituation = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.WindDirectionClosingSituation;
-using HydraIllustrationPointTreeNode = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.IllustrationPointTreeNode;
-using HydraGeneralResult = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.GeneralResult;
+using HydraRingWindDirectionClosingSituation = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.WindDirectionClosingSituation;
+using HydraRingIllustrationPointTreeNode = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.IllustrationPointTreeNode;
+using HydraRingGeneralResult = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.GeneralResult;
using IHydraRingIllustrationPoint = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.IIllustrationPoint;
-using HydraSubMechanismIllustrationPoint = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.SubMechanismIllustrationPoint;
+using HydraRingSubMechanismIllustrationPoint = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.SubMechanismIllustrationPoint;
namespace Ringtoets.Common.Service.IllustrationPoints
{
///
- /// Converter for related to creating a .
+ /// Converter for related to creating a .
///
public static class GeneralResultConverter
{
///
- /// Creates a new instance of based on the information of .
+ /// Creates a new instance of based on the information of .
///
- /// The to base the
+ /// The to base the
/// to create on.
/// The newly created .
- /// Thrown when is null.
- public static GeneralResult CreateGeneralResult(HydraGeneralResult hydraGeneralResult)
+ /// Thrown when is null.
+ public static GeneralResult CreateGeneralResult(HydraRingGeneralResult hydraRingGeneralResult)
{
- if (hydraGeneralResult == null)
+ if (hydraRingGeneralResult == null)
{
- throw new ArgumentNullException(nameof(hydraGeneralResult));
+ throw new ArgumentNullException(nameof(hydraRingGeneralResult));
}
- WindDirection windDirection = WindDirectionConverter.CreateWindDirection(hydraGeneralResult.GoverningWindDirection);
- IEnumerable stochasts = GetStochasts(hydraGeneralResult);
+ WindDirection windDirection = WindDirectionConverter.CreateWindDirection(hydraRingGeneralResult.GoverningWindDirection);
+ IEnumerable stochasts = GetStochasts(hydraRingGeneralResult);
IEnumerable windDirectionClosingScenarioIllustrationPoints =
- GetWindDirectionClosingSituationIllustrationPoint(hydraGeneralResult);
+ GetWindDirectionClosingSituationIllustrationPoint(hydraRingGeneralResult);
return new GeneralResult(windDirection, stochasts, windDirectionClosingScenarioIllustrationPoints);
}
- private static IEnumerable GetStochasts(HydraGeneralResult hydraGeneralResult)
+ private static IEnumerable GetStochasts(HydraRingGeneralResult hydraGeneralResult)
{
return hydraGeneralResult.Stochasts.Select(StochastConverter.CreateStochast);
}
private static IEnumerable GetWindDirectionClosingSituationIllustrationPoint(
- HydraGeneralResult hydraGeneralResult)
+ HydraRingGeneralResult hydraGeneralResult)
{
var combinations = new List();
- foreach (KeyValuePair illustrationPointTreeNode in hydraGeneralResult.IllustrationPoints)
+ foreach (KeyValuePair illustrationPointTreeNode in hydraGeneralResult.IllustrationPoints)
{
IHydraRingIllustrationPoint hydraIllustrationPoint = illustrationPointTreeNode.Value.Data;
- HydraWindDirectionClosingSituation hydraWindDirectionClosingSituation = illustrationPointTreeNode.Key;
+ HydraRingWindDirectionClosingSituation hydraWindDirectionClosingSituation = illustrationPointTreeNode.Key;
- var subMechanismIllustrationPoint = hydraIllustrationPoint as HydraSubMechanismIllustrationPoint;
+ var subMechanismIllustrationPoint = hydraIllustrationPoint as HydraRingSubMechanismIllustrationPoint;
if (subMechanismIllustrationPoint != null)
{
combinations.Add(TopLevelSubMechanismIllustrationPointConverter.CreateTopLevelSubMechanismIllustrationPoint(