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