public IEnumerable <LatestTestResultDto> GetLatestGrouped(int suiteId) { var suite = _suiteService.Get(suiteId); var suiteIds = _suiteService.GetAll() .Where(s => s.EnvironmentId == suite.EnvironmentId && s.ApplicationId == suite.ApplicationId) .Select(s => s.SuiteID) .ToArray(); var latestTestResults = _latestTestResultService.Get(suiteIds).ToList(); latestTestResults = AssignTestFailureDurations(latestTestResults); return(Sort(latestTestResults)); }
public string GetSuiteName(int suiteId, bool group) { var suite = _suiteService.Get(suiteId); return(group ? suite.GetNameGrouped() : suite.GetName()); }