Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/CommentContext.cs
===================================================================
diff -u -r1e6d07e8cbd1c29a16b5addddb7205e717543729 -rfa424689d48793c024e73bfcee1c202559eea3e0
--- Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/CommentContext.cs (.../CommentContext.cs) (revision 1e6d07e8cbd1c29a16b5addddb7205e717543729)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/CommentContext.cs (.../CommentContext.cs) (revision fa424689d48793c024e73bfcee1c202559eea3e0)
@@ -21,43 +21,31 @@
using System;
using Ringtoets.Common.Data;
-using Ringtoets.Common.Data.AssessmentSection;
namespace Ringtoets.Common.Forms.PresentationObjects
{
///
/// This class is a presentation object for the comment of .
///
- public class CommentContext where T : IComment
+ public class CommentContext where T : ICommentable
{
///
/// Creates a new instance of .
///
/// The container to wrap.
- /// The assessment section the belongs to.
/// Thrown when is null.
- public CommentContext(T commentContainer, IAssessmentSection assessmentSection)
+ public CommentContext(T commentContainer)
{
if (commentContainer == null)
{
throw new ArgumentNullException("commentContainer");
}
- if (assessmentSection == null)
- {
- throw new ArgumentNullException("assessmentSection");
- }
CommentContainer = commentContainer;
- AssessmentSection = assessmentSection;
}
///
/// Gets the wrapped comment container.
///
public T CommentContainer { get; private set; }
-
- ///
- /// Gets the assessment section which the belongs to.
- ///
- public IAssessmentSection AssessmentSection { get; private set; }
}
}