Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionResultContext.cs =================================================================== diff -u -r41fac7fff0a505c08945108d795dcb877f10b816 -r14185c4e29bcfc887fa656a681bdde704d250a9f --- Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionResultContext.cs (.../FailureMechanismSectionResultContext.cs) (revision 41fac7fff0a505c08945108d795dcb877f10b816) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionResultContext.cs (.../FailureMechanismSectionResultContext.cs) (revision 14185c4e29bcfc887fa656a681bdde704d250a9f) @@ -21,41 +21,34 @@ using System; using System.Collections.Generic; +using Core.Common.Controls.PresentationObjects; using Ringtoets.Common.Data.FailureMechanism; namespace Ringtoets.Common.Forms.PresentationObjects { /// /// This class is a presentation object for a collection of . /// - public class FailureMechanismSectionResultContext where T : FailureMechanismSectionResult + public class FailureMechanismSectionResultContext : WrappedObjectContextBase> where T : FailureMechanismSectionResult { /// /// Creates a new instance of . /// - /// The of to wrap. - /// The belongs to. - /// Thrown when or is null. - public FailureMechanismSectionResultContext(IEnumerable sectionResults, IFailureMechanism failureMechanism) + /// The of to wrap. + /// The the belongs to. + /// Thrown when or is null. + public FailureMechanismSectionResultContext(IEnumerable wrappedSectionResults, IFailureMechanism failureMechanism) + : base(wrappedSectionResults) { - if (sectionResults == null) - { - throw new ArgumentNullException("sectionResults"); - } if (failureMechanism == null) { throw new ArgumentNullException("failureMechanism"); } - SectionResults = sectionResults; + FailureMechanism = failureMechanism; } /// - /// Gets the wrapped of . - /// - public IEnumerable SectionResults { get; private set; } - - /// /// Gets the . /// public IFailureMechanism FailureMechanism { get; private set; }