public TestResultListItemDTO GetTestResultPreview(long testSessionId, long patternId) { var query = new FindTestResultForPatternInSession(testSessionId, patternId); var testResult = this.testRepository.FindOne(query); return(MapToTestResultListItemDTO(testResult)); }
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) }); }