示例#1
0
 internal Question(User askedBy, string content)
 {
     var id = Guid.NewGuid();
     
     var questionAsked = new QuestionAsked(id, askedBy.UserName, content);
     Apply(questionAsked);
     Append(questionAsked);
 }
示例#2
0
 private void Apply(QuestionAsked questionAsked)
 {
     Id = questionAsked.Id;
     AskedByUserName = questionAsked.AskedBy;
     Content = questionAsked.Content;
 }