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