public BacklogItem(string name, string description, Person assignedPerson, int effort, Backlog backlog) { _name = name; _description = description; _assignedPerson = assignedPerson; _effort = effort; _state = new TodoState(this); _backlogReference = backlog; }
public void ChangeState(IBacklogItemState state) { // BR: The state of the backlogItem can only be changed once it has a sprint reference if (_sprintReference == null) { throw new NotSupportedException( "Can't change the state of a backlogItem because it is not in a sprint"); } _state = state; NotifyObservers(); }