예제 #1
0
        public TestResultListItemDTO GetTestResultPreview(long testSessionId, long patternId)
        {
            var query      = new FindTestResultForPatternInSession(testSessionId, patternId);
            var testResult = this.testRepository.FindOne(query);

            return(MapToTestResultListItemDTO(testResult));
        }
예제 #2
0
        public TestResultWithPreview GetTestResultPreview(long testSessionId, long patternId)
        {
            var query      = new FindTestResultForPatternInSession(testSessionId, patternId);
            var testResult = this.testRepository.FindOne(query);

            return(new TestResultWithPreview()
            {
                ListItem = MapToTestResultListItemDTO(testResult),
                Preview = this.GetTestResultDetails(testResult.Id)
            });
        }