Index: Riskeer/GrassCoverErosionOutwards/src/Riskeer.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanismAssemblyFactory.cs =================================================================== diff -u -r34e5804e022f2ea502abfe4bf1eb8d14063fb602 -rab91e93965a76b4b765204f935c8160533516c45 --- Riskeer/GrassCoverErosionOutwards/src/Riskeer.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanismAssemblyFactory.cs (.../GrassCoverErosionOutwardsFailureMechanismAssemblyFactory.cs) (revision 34e5804e022f2ea502abfe4bf1eb8d14063fb602) +++ Riskeer/GrassCoverErosionOutwards/src/Riskeer.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanismAssemblyFactory.cs (.../GrassCoverErosionOutwardsFailureMechanismAssemblyFactory.cs) (revision ab91e93965a76b4b765204f935c8160533516c45) @@ -19,19 +19,48 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Riskeer.AssemblyTool.Data; using Riskeer.Common.Data.AssemblyTool; using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Common.Data.Exceptions; using Riskeer.Common.Data.FailureMechanism; namespace Riskeer.GrassCoverErosionOutwards.Data { + /// + /// Factory for assembling assembly results for a grass cover outwards failure mechanism. + /// public static class GrassCoverErosionOutwardsFailureMechanismAssemblyFactory { + /// + /// Assembles the section based on the input arguments. + /// + /// The section result to assemble. + /// The the section result belongs to. + /// The the section belongs to. + /// A . + /// Thrown when any argument is null. + /// Thrown when the section could not be assembled. public static FailureMechanismSectionAssemblyResult AssembleSection(NonAdoptableWithProfileProbabilityFailureMechanismSectionResult sectionResult, GrassCoverErosionOutwardsFailureMechanism failureMechanism, IAssessmentSection assessmentSection) { + if (sectionResult == null) + { + throw new ArgumentNullException(nameof(sectionResult)); + } + + if (failureMechanism == null) + { + throw new ArgumentNullException(nameof(failureMechanism)); + } + + if (assessmentSection == null) + { + throw new ArgumentNullException(nameof(assessmentSection)); + } + return FailureMechanismSectionResultAssemblyFactory.AssembleSection(sectionResult, assessmentSection, failureMechanism.GeneralInput.ApplyLengthEffectInSection); } } Fisheye: Tag eb0db539d74db9edf5a167a21807405812c6529b refers to a dead (removed) revision in file `Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.Test/GrassCoverErosionOutwardsFailureMechanismAssemblyFactoryTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.Data/StabilityStoneCoverFailureMechanismAssemblyFactory.cs =================================================================== diff -u -r34e5804e022f2ea502abfe4bf1eb8d14063fb602 -rab91e93965a76b4b765204f935c8160533516c45 --- Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.Data/StabilityStoneCoverFailureMechanismAssemblyFactory.cs (.../StabilityStoneCoverFailureMechanismAssemblyFactory.cs) (revision 34e5804e022f2ea502abfe4bf1eb8d14063fb602) +++ Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.Data/StabilityStoneCoverFailureMechanismAssemblyFactory.cs (.../StabilityStoneCoverFailureMechanismAssemblyFactory.cs) (revision ab91e93965a76b4b765204f935c8160533516c45) @@ -19,19 +19,48 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Riskeer.AssemblyTool.Data; using Riskeer.Common.Data.AssemblyTool; using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Common.Data.Exceptions; using Riskeer.Common.Data.FailureMechanism; namespace Riskeer.StabilityStoneCover.Data { + /// + /// Factory for assembling assembly results for a stability stone cover failure mechanism. + /// public static class StabilityStoneCoverFailureMechanismAssemblyFactory { + /// + /// Assembles the section based on the input arguments. + /// + /// The section result to assemble. + /// The the section result belongs to. + /// The the section belongs to. + /// A . + /// Thrown when any argument is null. + /// Thrown when the section could not be assembled. public static FailureMechanismSectionAssemblyResult AssembleSection(NonAdoptableWithProfileProbabilityFailureMechanismSectionResult sectionResult, StabilityStoneCoverFailureMechanism failureMechanism, IAssessmentSection assessmentSection) { + if (sectionResult == null) + { + throw new ArgumentNullException(nameof(sectionResult)); + } + + if (failureMechanism == null) + { + throw new ArgumentNullException(nameof(failureMechanism)); + } + + if (assessmentSection == null) + { + throw new ArgumentNullException(nameof(assessmentSection)); + } + return FailureMechanismSectionResultAssemblyFactory.AssembleSection(sectionResult, assessmentSection, failureMechanism.GeneralInput.ApplyLengthEffectInSection); } } Fisheye: Tag 134db1bbcb4ea918803c65445d4d1d56c9a6a794 refers to a dead (removed) revision in file `Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Data.Test/StabilityStoneCoverFailureMechanismAssemblyFactoryTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/WaveImpactAsphaltCover/src/Riskeer.WaveImpactAsphaltCover.Data/WaveImpactAsphaltCoverFailureMechanismAssemblyFactory.cs =================================================================== diff -u -r34e5804e022f2ea502abfe4bf1eb8d14063fb602 -rab91e93965a76b4b765204f935c8160533516c45 --- Riskeer/WaveImpactAsphaltCover/src/Riskeer.WaveImpactAsphaltCover.Data/WaveImpactAsphaltCoverFailureMechanismAssemblyFactory.cs (.../WaveImpactAsphaltCoverFailureMechanismAssemblyFactory.cs) (revision 34e5804e022f2ea502abfe4bf1eb8d14063fb602) +++ Riskeer/WaveImpactAsphaltCover/src/Riskeer.WaveImpactAsphaltCover.Data/WaveImpactAsphaltCoverFailureMechanismAssemblyFactory.cs (.../WaveImpactAsphaltCoverFailureMechanismAssemblyFactory.cs) (revision ab91e93965a76b4b765204f935c8160533516c45) @@ -1,16 +1,45 @@ -using Riskeer.AssemblyTool.Data; +using System; +using Riskeer.AssemblyTool.Data; using Riskeer.Common.Data.AssemblyTool; using Riskeer.Common.Data.AssessmentSection; +using Riskeer.Common.Data.Exceptions; using Riskeer.Common.Data.FailureMechanism; namespace Riskeer.WaveImpactAsphaltCover.Data { + /// + /// Factory for assembling assembly results for a wave impact asphalt cover failure mechanism. + /// public static class WaveImpactAsphaltCoverFailureMechanismAssemblyFactory { + /// + /// Assembles the section based on the input arguments. + /// + /// The section result to assemble. + /// The the section result belongs to. + /// The the section belongs to. + /// A . + /// Thrown when any argument is null. + /// Thrown when the section could not be assembled. public static FailureMechanismSectionAssemblyResult AssembleSection(NonAdoptableWithProfileProbabilityFailureMechanismSectionResult sectionResult, WaveImpactAsphaltCoverFailureMechanism failureMechanism, IAssessmentSection assessmentSection) { + if (sectionResult == null) + { + throw new ArgumentNullException(nameof(sectionResult)); + } + + if (failureMechanism == null) + { + throw new ArgumentNullException(nameof(failureMechanism)); + } + + if (assessmentSection == null) + { + throw new ArgumentNullException(nameof(assessmentSection)); + } + return FailureMechanismSectionResultAssemblyFactory.AssembleSection(sectionResult, assessmentSection, failureMechanism.GeneralWaveImpactAsphaltCoverInput.ApplyLengthEffectInSection); } } Index: Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/Riskeer.WaveImpactAsphaltCover.Data.Test.csproj =================================================================== diff -u -r08e8d26a0715f0f3db57c1d3e86256aa06934db4 -rab91e93965a76b4b765204f935c8160533516c45 --- Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/Riskeer.WaveImpactAsphaltCover.Data.Test.csproj (.../Riskeer.WaveImpactAsphaltCover.Data.Test.csproj) (revision 08e8d26a0715f0f3db57c1d3e86256aa06934db4) +++ Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/Riskeer.WaveImpactAsphaltCover.Data.Test.csproj (.../Riskeer.WaveImpactAsphaltCover.Data.Test.csproj) (revision ab91e93965a76b4b765204f935c8160533516c45) @@ -10,19 +10,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + Fisheye: Tag 6c0121956607067c9a5ac9ee29e2c5843e9f947c refers to a dead (removed) revision in file `Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/WaveImpactAsphaltCoverFailureMechanismAssemblyFactoryTest.cs'. Fisheye: No comparison available. Pass `N' to diff?