public Story(string id, string title, PriorityType priority, SizeType size, string description) : base(id, title, description) { this.priorityType = priority; this.storyStatus = StoryStatusType.NotDone; this.sizeType = size; }
public Story(string title, string description, PriorityType priorityType, StorySizeType storySizeType, StoryStatusType storyStatusType, IMember assignee) : base(title, description, priorityType, assignee) { this.SizeType = storySizeType; this.StatusType = storyStatusType; }
public override void ChangeStatus(string status) { if (status == null) { throw new ArgumentException("Status cannot be null or empty!"); } else { StoryStatusType statusEnum = (StoryStatusType)Enum.Parse(typeof(StoryStatusType), status, true); this.Status = statusEnum; } }
public override void ChangeStatus(string newStatus) { if (newStatus == null) { throw new ArgumentNullException(ModelConstants.InvalidNullStatus); } else { StoryStatusType statusEnum = Enum.Parse <StoryStatusType>(newStatus); this.StatusType = statusEnum; } }
//internal virtual List<Item> GetStoriesWithStatus(StoryStatusType storyStatusType) //{ // List<Item> stories = new List<Item>(); // if ((Type == ItemType.Feature || Type == ItemType.OutOfScope || Type == ItemType.TechnicalDebt || Type == ItemType.UserStory) // && (storyStatusType == StoryStatusType.None || State.CompareTo(storyStatusType.ToString()) == 0)) // { stories.Add(this.GetCopy()); } // foreach (var child in Children) // { stories.AddRange(child.GetStoriesWithStatus(storyStatusType)); } // return stories; //} internal virtual int GetNumberOfStoriesWithStatus(StoryStatusType storyStatusType) { int noOfStories = 0; if ((Type == ItemType.Feature || Type == ItemType.OutOfScope || Type == ItemType.TechnicalDebt || Type == ItemType.UserStory) && (storyStatusType == StoryStatusType.None || State.CompareTo(storyStatusType.ToString()) == 0)) { noOfStories++; } foreach (var child in Children) { noOfStories += child.GetNumberOfStoriesWithStatus(storyStatusType); } return(noOfStories); }
public IStory CreateStory(string title, string description, PriorityType priorityType, StorySizeType storySizeType, StoryStatusType storyStatusType, IMember assignee) { return(new Story(title, description, priorityType, storySizeType, storyStatusType, assignee)); }
public void ChangeStatus(StoryStatusType storyStatusType) { this.StatusType = storyStatusType; }