Beispiel #1
0
        public void CloseTask_MovesItemFromWorkInProgressToDone()
        {
            sut.CreateTask(taskId, TaskDescription);
            IEnumerable <Task> initialBacklogTasks = sut.GetBacklogTasks();
            var id = initialBacklogTasks.First().Id;

            sut.SheduleTask(id);
            sut.BeginWorkOnTask(id);

            sut.CloseTask(id);

            IEnumerable <Task> closedTasks     = sut.GetClosedTasks();
            IEnumerable <Task> tasksInProgress = sut.GetTasksInProgress();

            closedTasks.First().Description.ShouldEqual(TaskDescription);
            tasksInProgress.Count().ShouldEqual(0);
        }