コード例 #1
0
        public async Task <IEnumerable <FinishedIssue> > GetLatestFinishedStories(string projectKey, IssuesFromParameters parameters, StateFilteringParameter stateFiltering)
        {
            var latestStories = await GetLatestStories(projectKey, parameters, stateFiltering);

            return(OfFinishedStories(latestStories));
        }
コード例 #2
0
        private async Task <IEnumerable <AnalyzedIssue> > GetLatestStories(string projectKey, IssuesFromParameters parameters, StateFilteringParameter stateFiltering)
        {
            IEnumerable <AnalyzedIssue> stories = (await GetStories(projectKey, stateFiltering)).ToArray();

            var latestStories = stories
                                .Where(x => parameters.IssuesFrom == null || x.Ended >= parameters.IssuesFrom)
                                .ToArray();

            return(latestStories);
        }