Ejemplo n.º 1
0
        public void SheduleTask_MovesItemFromBacklogToSheduledTasks()
        {
            sut.CreateTask(taskId, TaskDescription);
            IEnumerable <Task> initialBacklogTasks = sut.GetBacklogTasks();

            sut.SheduleTask(initialBacklogTasks.First().Id);
            IEnumerable <Task> sheduledTasks = sut.GetSheduledTasks();
            IEnumerable <Task> backlogTasks  = sut.GetBacklogTasks();

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