public virtual Comment Build() { if (text == null) { throw new MemberAccessException("The comment text is required."); } Comment comment = new Comment(); comment.text = text; return comment; }