public Comment(Post post, User author, string content) : base() { this.post = post; this.author = author; this.content = content; }
public static User Create(string name, string email, string password) { User user = new User(); user.Name = name; user.NickName = name; user.Email = email; user.Password = password; return user; }
public static Comment Create(Post post, User author, string content) { return new Comment(post, author, content); }
public Post(Topic topic, User author, string content) { this.topic = topic; this.author = author; this.content = content; }
public static Post Create(Topic topic, User author, string content) { return new Post(topic, author, content); }