Пример #1
0
        public async Task <ICollection <TestResultsSummaryViewModel> > GetTestResultsSummaryAsync(Guid buildId)
        {
            var testResultSummary = await _testResultRepository.GetSummary(buildId);

            var testResultsSummaryViewModels = testResultSummary.Select(x => new TestResultsSummaryViewModel
            {
                Status = x.Status.Name,
                Count  = x.Count
            }).ToList();

            return(testResultsSummaryViewModels);
        }