Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverSlipOffOutwardsSectionResultEntityReadExtensions.cs =================================================================== diff -u -r64fdab6f623c85ae3ad1b030ff4046c61773a38e -r27963fc53c323c7a6b6382bee7d1ded31b6ac3a0 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverSlipOffOutwardsSectionResultEntityReadExtensions.cs (.../GrassCoverSlipOffOutwardsSectionResultEntityReadExtensions.cs) (revision 64fdab6f623c85ae3ad1b030ff4046c61773a38e) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverSlipOffOutwardsSectionResultEntityReadExtensions.cs (.../GrassCoverSlipOffOutwardsSectionResultEntityReadExtensions.cs) (revision 27963fc53c323c7a6b6382bee7d1ded31b6ac3a0) @@ -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.Integration.Data.StandAlone.SectionResults; namespace Application.Ringtoets.Storage.Read @@ -36,18 +37,28 @@ /// Reads the and use the information to update a /// . /// - /// The to create for. + /// The used 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 GrassCoverSlipOffOutwardsSectionResultEntity entity, GrassCoverSlipOffOutwardsFailureMechanismSectionResult 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.DetailedAssessmentResult = (DetailedAssessmentResultType) entity.DetailedAssessmentResult; + sectionResult.TailorMadeAssessmentResult = (TailorMadeAssessmentResultType) entity.TailorMadeAssessmentResult; + sectionResult.UseManualAssemblyCategoryGroup = Convert.ToBoolean(entity.UseManualAssemblyCategoryGroup); + sectionResult.ManualAssemblyCategoryGroup = (FailureMechanismSectionAssemblyCategoryGroup) entity.TailorMadeAssessmentResult; } } } \ No newline at end of file