Пример #1
0
 public Comment(Post post, User author, string content)
     : base()
 {
     this.post = post;
     this.author = author;
     this.content = content;
 }
Пример #2
0
        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;
        }
Пример #3
0
 public static Comment Create(Post post, User author, string content)
 {
     return new Comment(post, author, content);
 }
Пример #4
0
 public Post(Topic topic, User author, string content)
 {
     this.topic = topic;
     this.author = author;
     this.content = content;
 }
Пример #5
0
 public static Post Create(Topic topic, User author, string content)
 {
     return new Post(topic, author, content);
 }