Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/CombinedFailureMechanismSectionAssembly.cs =================================================================== diff -u -r9537a33b0502e46af43b6e1372b87984fe7f2a88 -r6b7fc9d682090343904b25d6c3ecb10b0166decf --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/CombinedFailureMechanismSectionAssembly.cs (.../CombinedFailureMechanismSectionAssembly.cs) (revision 9537a33b0502e46af43b6e1372b87984fe7f2a88) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/CombinedFailureMechanismSectionAssembly.cs (.../CombinedFailureMechanismSectionAssembly.cs) (revision 6b7fc9d682090343904b25d6c3ecb10b0166decf) @@ -32,45 +32,32 @@ /// /// Creates a new instance of . /// - /// The start of the section from the beginning of the reference line. - /// The end of the section from the beginning of the reference line. - /// The combined assembly result. + /// The section of the assembly. /// The assembly results per failure mechanism. - /// Thrown when - /// is null. - public CombinedFailureMechanismSectionAssembly(double sectionStart, double sectionEnd, - FailureMechanismSectionAssemblyCategoryGroup combinedResult, + /// Thrown when any parameter is null. + public CombinedFailureMechanismSectionAssembly(CombinedAssemblyFailureMechanismSection section, IEnumerable failureMechanismResults) { + if (section == null) + { + throw new ArgumentNullException(nameof(section)); + } + if (failureMechanismResults == null) { throw new ArgumentNullException(nameof(failureMechanismResults)); } - SectionStart = sectionStart; - SectionEnd = sectionEnd; - CombinedResult = combinedResult; + Section = section; FailureMechanismResults = failureMechanismResults; } - + /// - /// Gets the start of the section from the beginning of the reference line. - /// [m] + /// Gets the section of the assembly. /// - public double SectionStart { get; } + public CombinedAssemblyFailureMechanismSection Section { get; } /// - /// Gets the end of the section from the beginning of the reference line. - /// [m] - /// - public double SectionEnd { get; } - - /// - /// Gets the combined assembly result. - /// - public FailureMechanismSectionAssemblyCategoryGroup CombinedResult { get; } - - /// /// Gets the assembly results per failure mechanism. /// public IEnumerable FailureMechanismResults { get; }