예제 #1
0
        protected CommentBase(
            CommentBase parentComment)
            : base()
        {
            InitMembers();

            SequentialId = parentComment.GetNextChildCommentSequentialId();
            Id           = parentComment.GetNextChildCommentId();
        }
예제 #2
0
        public Comment(
            User createdByUser,
            DateTime createdOn,
            string message,
            CommentBase parentComment)
            : base(
                parentComment)
        {
            Check.RequireNotNull(createdByUser, "createdByUser");
            Check.RequireNotNullOrWhitespace(message, "message");

            User      = createdByUser;
            CreatedOn = createdOn;

            SetCommentDetails(
                message,
                createdByUser,
                createdOn);
        }