Exemplo n.º 1
0
        public void Check_TaskStatus_All_subtasks_completed()
        {
            task.AddSubTask(new TaskEntityBuilder().WithStatus(TaskStatus.Completed).Build());
            task.AddSubTask(new TaskEntityBuilder().WithStatus(TaskStatus.Completed).Build());

            var result = task.TaskStatus;

            Assert.AreEqual(TaskStatus.Completed, result);
        }
Exemplo n.º 2
0
        public TaskEntityBuilder WithSubTask(TaskEntity subtask)
        {
            task.AddSubTask(subtask);

            return(this);
        }