Esempio n. 1
0
        public static Topic Create(string name, string summary, DateTime expiredDate)
        {
            Topic topic = new Topic();

            topic.Name = name;
            topic.Summary = summary;
            topic.ExpiredDate = expiredDate;

            return topic;
        }
Esempio n. 2
0
 public Post(Topic topic, User author, string content)
 {
     this.topic = topic;
     this.author = author;
     this.content = content;
 }
Esempio n. 3
0
 public static Post Create(Topic topic, User author, string content)
 {
     return new Post(topic, author, content);
 }