Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsSectionResultEntityReadExtensions.cs
===================================================================
diff -u -rb096784d1845696aba767ca12194673dd9347428 -r3f439dfd2f859eb9ce3adb058fea7e7f09fc63d5
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsSectionResultEntityReadExtensions.cs (.../GrassCoverErosionOutwardsSectionResultEntityReadExtensions.cs) (revision b096784d1845696aba767ca12194673dd9347428)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsSectionResultEntityReadExtensions.cs (.../GrassCoverErosionOutwardsSectionResultEntityReadExtensions.cs) (revision 3f439dfd2f859eb9ce3adb058fea7e7f09fc63d5)
@@ -21,7 +21,8 @@
using System;
using Application.Ringtoets.Storage.DbContext;
-using Ringtoets.Common.Data.FailureMechanism;
+using Ringtoets.AssemblyTool.Data;
+using Ringtoets.Common.Primitives;
using Ringtoets.GrassCoverErosionOutwards.Data;
namespace Application.Ringtoets.Storage.Read.GrassCoverErosionOutwards
@@ -36,18 +37,30 @@
/// Reads the and use the information to update a
/// .
///
- /// The to create for.
+ /// The to update the .
/// The target of the read operation.
- /// A new .
- /// Thrown when is null.
+ /// Thrown when any parameter is null.
internal static void Read(this GrassCoverErosionOutwardsSectionResultEntity entity, GrassCoverErosionOutwardsFailureMechanismSectionResult sectionResult)
{
+ if (entity == null)
+ {
+ throw new ArgumentNullException(nameof(entity));
+ }
+
if (sectionResult == null)
{
throw new ArgumentNullException(nameof(sectionResult));
}
- sectionResult.AssessmentLayerOne = (AssessmentLayerOneState) entity.LayerOne;
+ sectionResult.SimpleAssessmentResult = (SimpleAssessmentResultType) entity.SimpleAssessmentResult;
+ sectionResult.DetailedAssessmentResultForFactorizedSignalingNorm = (DetailedAssessmentResultType) entity.DetailedAssessmentResultForFactorizedSignalingNorm;
+ sectionResult.DetailedAssessmentResultForSignalingNorm = (DetailedAssessmentResultType) entity.DetailedAssessmentResultForSignalingNorm;
+ sectionResult.DetailedAssessmentResultForMechanismSpecificLowerLimitNorm = (DetailedAssessmentResultType) entity.DetailedAssessmentResultForMechanismSpecificLowerLimitNorm;
+ sectionResult.DetailedAssessmentResultForLowerLimitNorm = (DetailedAssessmentResultType) entity.DetailedAssessmentResultForLowerLimitNorm;
+ sectionResult.DetailedAssessmentResultForFactorizedLowerLimitNorm = (DetailedAssessmentResultType) entity.DetailedAssessmentResultForFactorizedLowerLimitNorm;
+ sectionResult.TailorMadeAssessmentResult = (FailureMechanismSectionAssemblyCategoryGroup) entity.TailorMadeAssessmentResult;
+ sectionResult.UseManualAssemblyCategoryGroup = Convert.ToBoolean(entity.UseManualAssemblyCategoryGroup);
+ sectionResult.ManualAssemblyCategoryGroup = (FailureMechanismSectionAssemblyCategoryGroup) entity.ManualAssemblyCategoryGroup;
}
}
}
\ No newline at end of file