Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/StrengthStabilityLengthwise/StrengthStabilityLengthwiseConstructionFailureMechanismSectionResultCreateExtensions.cs =================================================================== diff -u -r802d3cd39b925ac9873ea277588ecd1933e374f6 -r7f4dd3be7eb03e33a2fa5ff6917a5ba0af4e2686 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/StrengthStabilityLengthwise/StrengthStabilityLengthwiseConstructionFailureMechanismSectionResultCreateExtensions.cs (.../StrengthStabilityLengthwiseConstructionFailureMechanismSectionResultCreateExtensions.cs) (revision 802d3cd39b925ac9873ea277588ecd1933e374f6) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/StrengthStabilityLengthwise/StrengthStabilityLengthwiseConstructionFailureMechanismSectionResultCreateExtensions.cs (.../StrengthStabilityLengthwiseConstructionFailureMechanismSectionResultCreateExtensions.cs) (revision 7f4dd3be7eb03e33a2fa5ff6917a5ba0af4e2686) @@ -36,11 +36,20 @@ /// /// The result to create a database entity for. /// A new . + /// Thrown when is null. internal static StrengthStabilityLengthwiseConstructionSectionResultEntity Create(this StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult result) { + if (result == null) + { + throw new ArgumentNullException(nameof(result)); + } + var sectionResultEntity = new StrengthStabilityLengthwiseConstructionSectionResultEntity { - LayerOne = Convert.ToByte(result.AssessmentLayerOne) + SimpleAssessmentResult = Convert.ToByte(result.SimpleAssessmentResult), + TailorMadeAssessmentResult = Convert.ToByte(result.TailorMadeAssessmentResult), + UseManualAssemblyCategoryGroup = Convert.ToByte(result.UseManualAssemblyCategoryGroup), + ManualAssemblyCategoryGroup = Convert.ToByte(result.ManualAssemblyCategoryGroup) }; return sectionResultEntity;