public TodoList(TodoListId id, string name) : this() { ApplyChange(new AddedNewTodoList(id, name)); }
public override int GetHashCode() { return(TodoListId.GetHashCode() ^ TodoListItemId.GetHashCode() ^ (Description != null ? Description.GetHashCode() : 0)); }
void When(AddedNewTodoList @event) { Id = new TodoListId(@event.Id); _items = new List <TodoListItem>(); }
protected bool Equals(AddedNewItemToTodoList other) { return(TodoListId.Equals(other.TodoListId) && TodoListItemId.Equals(other.TodoListItemId) && string.Equals(Description, other.Description)); }