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 }); }
public void Handle(TodoListCreatedEvent message) { IsCompleted = true; }