Esempio n. 1
0
        public ActionResult ViewHtml(Guid testFileResultId, int resultId)
        {
            TestFileResult testFileResult = _testsClient.GetResultById(testFileResultId);
            TestResult     result         = testFileResult.TestResults.ElementAtOrDefault(resultId);

            if (result != null)
            {
                string html    = result.HttpContent;
                string baseUrl = _urlHelper.GetBaseUrl(result.ActualUrl);
                html = _urlHelper.AddUrlBase(baseUrl, html);

                return(Content(html));
            }

            return(Content("Result Id not found"));
        }