protected CommentBase( CommentBase parentComment) : base() { InitMembers(); SequentialId = parentComment.GetNextChildCommentSequentialId(); Id = parentComment.GetNextChildCommentId(); }
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); }