예제 #1
0
파일: Answer.cs 프로젝트: dmusial/StackLite
 public void AmendContent(string content)
 {
     if (string.IsNullOrWhiteSpace(content))
         throw new ArgumentNullException("content");
         
     var answerAmended = new AnswerAmended(Id, content);
     Apply(answerAmended);
     Append(answerAmended);
 }
예제 #2
0
파일: Answer.cs 프로젝트: dmusial/StackLite
 private void Apply(AnswerAmended answerAmended)
 {
     Content = answerAmended.Content;
 }