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

            sut.SheduleTask(id);

            sut.BeginWorkOnTask(id);
            IEnumerable <Task> tasksInProgress = sut.GetTasksInProgress();
            IEnumerable <Task> sheduledTasks   = sut.GetSheduledTasks();

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