Ejemplo n.º 1
0
        // 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
            };
        }
Ejemplo n.º 2
0
        public void Rename(TaskName name)
        {
            Guard.ThrowIfNull(name, nameof(name));

            _state.Name = name;
        }