using System;
namespace Ringtoets.Integration.IO.Assembly
{
///
/// Class that holds all the information to export a combined section assembly result of a failure mechanism.
///
public class ExportableFailureMechanismCombinedSectionAssemblyResult
{
///
/// Creates a new instance of
///
/// The assembly result of the combined section.
/// The code of the failure mechanism.
/// Thrown when is null.
public ExportableFailureMechanismCombinedSectionAssemblyResult(ExportableSectionAssemblyResult sectionAssemblyResult,
ExportableFailureMechanismType code)
{
if (sectionAssemblyResult == null)
{
throw new ArgumentNullException(nameof(sectionAssemblyResult));
}
SectionAssemblyResult = sectionAssemblyResult;
Code = code;
}
///
/// Gets the assembly result.
///
public ExportableSectionAssemblyResult SectionAssemblyResult { get; }
///
/// Gets the code of the failure mechanism.
///
public ExportableFailureMechanismType Code { get; }
}
}