Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/GrassCoverSlipOffInwards/GrassCoverSlipOffInwardsFailureMechanismSectionResultCreateExtensions.cs =================================================================== diff -u -r590e1aeba4a1e5a622c8e8d89270167907920b43 -r7f4dd3be7eb03e33a2fa5ff6917a5ba0af4e2686 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/GrassCoverSlipOffInwards/GrassCoverSlipOffInwardsFailureMechanismSectionResultCreateExtensions.cs (.../GrassCoverSlipOffInwardsFailureMechanismSectionResultCreateExtensions.cs) (revision 590e1aeba4a1e5a622c8e8d89270167907920b43) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/GrassCoverSlipOffInwards/GrassCoverSlipOffInwardsFailureMechanismSectionResultCreateExtensions.cs (.../GrassCoverSlipOffInwardsFailureMechanismSectionResultCreateExtensions.cs) (revision 7f4dd3be7eb03e33a2fa5ff6917a5ba0af4e2686) @@ -32,15 +32,26 @@ internal static class GrassCoverSlipOffInwardsFailureMechanismSectionResultCreateExtensions { /// - /// Creates a based on the information of the . + /// Creates a based on the information + /// of the . /// /// The result to create a database entity for. /// A new . + /// Thrown when is null. internal static GrassCoverSlipOffInwardsSectionResultEntity Create(this GrassCoverSlipOffInwardsFailureMechanismSectionResult result) { + if (result == null) + { + throw new ArgumentNullException(nameof(result)); + } + var sectionResultEntity = new GrassCoverSlipOffInwardsSectionResultEntity { - LayerOne = Convert.ToByte(result.AssessmentLayerOne) + SimpleAssessmentResult = Convert.ToByte(result.SimpleAssessmentResult), + DetailedAssessmentResult = Convert.ToByte(result.DetailedAssessmentResult), + TailorMadeAssessmentResult = Convert.ToByte(result.TailorMadeAssessmentResult), + UseManualAssemblyCategoryGroup = Convert.ToByte(result.UseManualAssemblyCategoryGroup), + ManualAssemblyCategoryGroup = Convert.ToByte(result.ManualAssemblyCategoryGroup) }; return sectionResultEntity;