Index: Riskeer/Integration/src/Riskeer.Integration.IO/Factories/ExportableAssemblyFactory.cs =================================================================== diff -u -r962a4d296b77de745274146a6e3e6ffa8e977821 -rb7414e083e86a5b6e91294ed7c38477ed119b042 --- Riskeer/Integration/src/Riskeer.Integration.IO/Factories/ExportableAssemblyFactory.cs (.../ExportableAssemblyFactory.cs) (revision 962a4d296b77de745274146a6e3e6ffa8e977821) +++ Riskeer/Integration/src/Riskeer.Integration.IO/Factories/ExportableAssemblyFactory.cs (.../ExportableAssemblyFactory.cs) (revision b7414e083e86a5b6e91294ed7c38477ed119b042) @@ -23,6 +23,7 @@ using Riskeer.AssemblyTool.IO.Model; using Riskeer.Common.Data.Exceptions; using Riskeer.Integration.Data; +using Riskeer.Integration.IO.Exceptions; using Riskeer.Integration.IO.Helpers; using Riskeer.Integration.IO.Properties; @@ -43,6 +44,7 @@ /// is null. /// Thrown when no reference line is set for . /// Thrown when assembly results cannot be created for . + /// Thrown when assembly results are invalid and cannot be exported. public static ExportableAssembly CreateExportableAssembly(AssessmentSection assessmentSection) { if (assessmentSection == null) Index: Riskeer/Integration/src/Riskeer.Integration.IO/Factories/ExportableAssessmentSectionFactory.cs =================================================================== diff -u -r838241db2e78d6f4dc62648bca2fc58aec061365 -rb7414e083e86a5b6e91294ed7c38477ed119b042 --- Riskeer/Integration/src/Riskeer.Integration.IO/Factories/ExportableAssessmentSectionFactory.cs (.../ExportableAssessmentSectionFactory.cs) (revision 838241db2e78d6f4dc62648bca2fc58aec061365) +++ Riskeer/Integration/src/Riskeer.Integration.IO/Factories/ExportableAssessmentSectionFactory.cs (.../ExportableAssessmentSectionFactory.cs) (revision b7414e083e86a5b6e91294ed7c38477ed119b042) @@ -40,6 +40,7 @@ using Riskeer.Integration.Data.Assembly; using Riskeer.Integration.Data.StandAlone; using Riskeer.Integration.Data.StandAlone.AssemblyFactories; +using Riskeer.Integration.IO.Exceptions; using Riskeer.Integration.IO.Helpers; using Riskeer.Integration.IO.Properties; using Riskeer.MacroStabilityInwards.Data; @@ -67,6 +68,7 @@ /// Thrown when any parameter is null. /// Thrown when no reference line is set for . /// Thrown when assembly results cannot be created for . + /// Thrown when assembly results are invalid and cannot be exported. public static ExportableAssessmentSection CreateExportableAssessmentSection(IdentifierGenerator idGenerator, AssessmentSection assessmentSection) { if (idGenerator == null) @@ -149,12 +151,14 @@ /// for failure mechanisms that are in assembly based on . /// /// The generator to generate ids for the exportable components. - /// The to keep track of the created . + /// The + /// to keep track of the created . /// The assessment section to create a collection of /// with probability for. /// A collection of based on failure /// mechanisms that are in assembly. /// Thrown when assembly results cannot be created for . + /// Thrown when assembly results are invalid and cannot be exported. private static IEnumerable CreateExportableFailureMechanisms( IdentifierGenerator idGenerator, ExportableFailureMechanismSectionRegistry registry, AssessmentSection assessmentSection) { @@ -234,6 +238,22 @@ return exportableFailureMechanisms; } + /// + /// Adds a generic failure mechanism to the when it is in assembly. + /// + /// The generator to generate ids for the exportable components. + /// The + /// to keep track of the created . + /// The with + /// to add the failure mechanism to. + /// The failure mechanism to export. + /// The assessment section the failure mechanism belongs to. + /// The to assemble the failure mechanism. + /// The to assemble the failure mechanism section. + /// The type of failure mechanism. + /// The type of section result. + /// Thrown when assembly results cannot be created for . + /// Thrown when assembly results are invalid and cannot be exported. private static void AddGenericFailureMechanismWhenInAssembly( IdentifierGenerator idGenerator, ExportableFailureMechanismSectionRegistry registry, List exportableFailureMechanisms, TFailureMechanism failureMechanism, IAssessmentSection assessmentSection, @@ -266,8 +286,9 @@ /// Creates a collection of based on . /// /// The assessment section to create a collection of for. - /// A . + /// An of . /// Thrown when assembly results cannot be created for . + /// Thrown when assembly results are invalid and cannot be exported. private static IEnumerable CreateExportableCombinedSectionAssemblyCollection(AssessmentSection assessmentSection) { return ExportableCombinedSectionAssemblyFactory.CreateExportableCombinedSectionAssemblyCollection(