// Project actuality/validation is not performed. public Task(TaskId taskId, ProjectId projectId, TaskName name) { Guard.ThrowIfNull(taskId, nameof(taskId)); Guard.ThrowIfNull(projectId, nameof(projectId)); Guard.ThrowIfNull(name, nameof(name)); _state = new State { TaskId = taskId, ProjectId = projectId, Name = name }; }
public void Rename(TaskName name) { Guard.ThrowIfNull(name, nameof(name)); _state.Name = name; }