Exemple #1
0
 public void Create(TodoListCreatedEvent eventInformation)
 {
     this.Id                   = eventInformation.AggregateId;
     this.CreationDate         = eventInformation.Date;
     this.LastModificationDate = eventInformation.Date;
     this.Length               = 0;
     this.Name                 = eventInformation.Name;
 }
 public void Handle(TodoListCreatedEvent message)
 {
     _todoListWriteRepository.SaveList(new TodoListViewModel()
     {
         ListId = message.ListId,
         Name   = message.ListName
     });
 }
Exemple #3
0
 public void Handle(TodoListCreatedEvent message)
 {
     IsCompleted = true;
 }