Exemplo n.º 1
0
 public Answer(Guid questionId, Contributor contributor, BodyContent body)
 {
     Id               = Guid.NewGuid();
     QuestionId       = questionId;
     Contributor      = contributor;
     Body             = body;
     HappenedDateTime = DateTime.Now;
     Votes            = new List <Vote>();
     Comments         = new List <Comment>();
 }
Exemplo n.º 2
0
        public Question(string title, BodyContent body, Poster poster)
        {
            Id     = Guid.NewGuid();
            Title  = title;
            Body   = body;
            Poster = poster;

            Votes    = new List <Vote>();
            Answers  = new List <Answer>();
            Comments = new List <Comment>();
            Tags     = new List <Tag>();
        }