JelloScrum.Model.Entities.Story.GetTasksWith C# (CSharp) Method

GetTasksWith() public method

Gets all tasks with the given state
public GetTasksWith ( State state ) : IList
state State The state.
return IList
        public virtual IList<Task> GetTasksWith(State state)
        {
            IList<Task> tasksWithState = new List<Task>();
            foreach (Task task in tasks)
            {
                if (task.State == state)
                    tasksWithState.Add(task);
            }
            return tasksWithState;
        }