Ejemplo n.º 1
0
        private void AnalyseData()
        {
            storiesCount = AllItems.Sum(i => i.GetNumberOfStoriesWithStatus(StoryStatusType.None));

            burn.Effort    = AllItems.Sum(i => i.GetBurn(ItemBroadType.None, ActivityType.None).Sum(e => e.EffortInHr));
            burn.DevEffort = AllItems.Sum(i => i.GetBurn(ItemBroadType.None, ActivityType.Development).Sum(e => e.EffortInHr));
            burn.QAEffort  = AllItems.Sum(i => i.GetBurn(ItemBroadType.None, ActivityType.Testing).Sum(e => e.EffortInHr));
            burn.TWEffort  = AllItems.Sum(i => i.GetBurn(ItemBroadType.None, ActivityType.Documentation).Sum(e => e.EffortInHr));

            timeSpent = AllItems.Sum(i => i.GetTimeSpent().Sum(e => e.EffortInHr));

            bugBurn.Effort    = AllItems.Sum(i => i.GetBurn(ItemBroadType.Bug, ActivityType.None).Sum(e => e.EffortInHr));
            bugBurn.DevEffort = AllItems.Sum(i => i.GetBurn(ItemBroadType.Bug, ActivityType.Development).Sum(e => e.EffortInHr));
            bugBurn.QAEffort  = AllItems.Sum(i => i.GetBurn(ItemBroadType.Bug, ActivityType.Testing).Sum(e => e.EffortInHr));
            bugBurn.TWEffort  = AllItems.Sum(i => i.GetBurn(ItemBroadType.Bug, ActivityType.Documentation).Sum(e => e.EffortInHr));

            storyBurn.Effort    = AllItems.Sum(i => i.GetBurn(ItemBroadType.UserStory, ActivityType.None).Sum(e => e.EffortInHr));
            storyBurn.DevEffort = AllItems.Sum(i => i.GetBurn(ItemBroadType.UserStory, ActivityType.Development).Sum(e => e.EffortInHr));
            storyBurn.QAEffort  = AllItems.Sum(i => i.GetBurn(ItemBroadType.UserStory, ActivityType.Testing).Sum(e => e.EffortInHr));
            storyBurn.TWEffort  = AllItems.Sum(i => i.GetBurn(ItemBroadType.UserStory, ActivityType.Documentation).Sum(e => e.EffortInHr));

            deviation.Effort    = AllItems.Sum(i => i.GetDeviation().Sum(e => e.EffortInHr));
            deviation.DevEffort = AllItems.Sum(i => i.GetDeviation().Where(c => c.Activity == ActivityType.Development).Sum(e => e.EffortInHr));
            deviation.QAEffort  = AllItems.Sum(i => i.GetDeviation().Where(c => c.Activity == ActivityType.Testing).Sum(e => e.EffortInHr));
            deviation.TWEffort  = AllItems.Sum(i => i.GetDeviation().Where(c => c.Activity == ActivityType.Documentation).Sum(e => e.EffortInHr));

            progress.Effort    = burn.Effort - deviation.Effort;
            progress.DevEffort = burn.DevEffort - deviation.DevEffort;
            progress.QAEffort  = burn.QAEffort - deviation.QAEffort;
            progress.TWEffort  = burn.TWEffort - deviation.TWEffort;

            noOfBugsResolved = AllItems.Sum(i => i.GetNumberOfBugsWithStatus(BugStatusType.Resolved));
            noOfBugsClosed   = AllItems.Sum(i => i.GetNumberOfBugsWithStatus(BugStatusType.Closed));
        }