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>(); }
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>(); }