Пример #1
0
        public void NextState()
        {
            // BR: Only allow ready to test state when all tasks are active or done
            foreach (var task in _backlogItem.GetTasks())
            {
                if (task.GetState() != ETaskState.Done)
                {
                    throw new NotSupportedException(
                              "Backlog item can't go to testing because there are still tasks with todo or active status");
                }
            }

            _backlogItem.ChangeState(new TestingState(_backlogItem));
        }
Пример #2
0
        public void NextState()
        {
            // BR: Only allow done state when all tasks are done.

            foreach (var task in _backlogItem.GetTasks())
            {
                if (task.GetState() != ETaskState.Done)
                {
                    throw new NotSupportedException(
                              "Can't set backlogItem state to done because not all tasks are done.");
                }
            }

            _backlogItem.ChangeState(new DoneState(_backlogItem));
        }
Пример #3
0
 public void NextState()
 {
     _backlogItem.ChangeState(new DoingState(_backlogItem));
 }