public async Task <IEnumerable <FinishedIssue> > GetLatestFinishedStories(string projectKey, IssuesFromParameters parameters, StateFilteringParameter stateFiltering) { var latestStories = await GetLatestStories(projectKey, parameters, stateFiltering); return(OfFinishedStories(latestStories)); }
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); }