/// <summary>
        /// Constructor.
        /// </summary>
        public TestResultViewModel(TestResult testResult)
        {
            ClassName = testResult.Build
                .Commit
                .Project
                .TestClasses
                .SingleOrDefault(tc => tc.ClassName == testResult.ClassName)
                ?.DisplayName ?? testResult.ClassName;

            TestName = testResult.TestName;
            Succeeded = testResult.Succeeded;
            TestStatusHtml = testResult.GetTestStatusHtml(alwaysBold: true);
            FailureMessage = testResult.FailureMessage;
            FailureTrace = testResult.FailureTrace;
            FailureOutput = testResult.FailureOutput;
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 public TestResultTableEntry(TestResult testResult, Func<TestResult, string> testUrlBuilder)
 {
     Name = testResult.TestName;
     Result = testResult.GetTestStatusHtml(alwaysBold: false);
     ResultLink = GetLink(testUrlBuilder(testResult), "Result", preventWrapping: true);
 }