using System; using System.Collections.Generic; namespace Ringtoets.Integration.IO.Assembly { /// /// Class that holds all the information to export an combined section assembly result. /// public class ExportableCombinedSectionAssembly { /// /// Creates a new instance of . /// /// The section that belongs to the assembly result. /// The combined assembly result of this section. /// The assembly results per failure mechanism. /// Thrown when any parameter is null. public ExportableCombinedSectionAssembly(ExportableCombinedFailureMechanismSection section, ExportableFailureMechanismAssemblyResult combinedAssemblyResult, IEnumerable failureMechanismResults) { if (section == null) { throw new ArgumentNullException(nameof(section)); } if (combinedAssemblyResult == null) { throw new ArgumentNullException(nameof(combinedAssemblyResult)); } if (failureMechanismResults == null) { throw new ArgumentNullException(nameof(failureMechanismResults)); } Section = section; CombinedAssemblyResult = combinedAssemblyResult; FailureMechanismResults = failureMechanismResults; } /// /// Gets the section of the assembly. /// public ExportableCombinedFailureMechanismSection Section { get; } /// /// Gets the assembly result of this section. /// public ExportableFailureMechanismAssemblyResult CombinedAssemblyResult { get; } /// /// Gets the assembly results per failure mechanism. /// public IEnumerable FailureMechanismResults { get; } } }