Tmx.Core.TestResultsExporter.GetScenariosXElement C# (CSharp) Method

GetScenariosXElement() private method

private GetScenariosXElement ( ITestSuite suite, ITestScenario scenario, IOrderedEnumerable testResults, IXMLElementsStruct xmlStruct ) : System.Xml.Linq.XElement
suite ITestSuite
scenario ITestScenario
testResults IOrderedEnumerable
xmlStruct IXMLElementsStruct
return System.Xml.Linq.XElement
        XElement GetScenariosXElement(
                ITestSuite suite,
                ITestScenario scenario,
                IOrderedEnumerable<ITestResult> testResults,
                IXMLElementsStruct xmlStruct)
        {
            var scenariosElement =
                new XElement(xmlStruct.ScenarioNode,
                             new XAttribute("uniqueId", scenario.UniqueId),
                             new XAttribute("id", scenario.Id),
                             new XAttribute("name", scenario.Name),
                             new XAttribute("status", scenario.Status),
                             CreateXattribute(xmlStruct.TimeSpentAttribute, Convert.ToInt32(suite.Statistics.TimeSpent)),
                             new XAttribute("all", scenario.Statistics.All.ToString()),
                             new XAttribute("passed", scenario.Statistics.Passed.ToString()),
                             CreateXattribute(xmlStruct.FailedAttribute, scenario.Statistics.Failed.ToString()),
                             new XAttribute("notTested", scenario.Statistics.NotTested.ToString()),
                             new XAttribute("knownIssue", scenario.Statistics.PassedButWithBadSmell.ToString()),
                             CreateXattribute("description", scenario.Description),
                             CreateXattribute("platformId", scenario.PlatformId),
                             CreateXattribute("platformUniqueId", scenario.PlatformUniqueId),
                             CreateTestResultsXElementCommon(
                                 suite,
                                 scenario,
                                 testResults,
                                 xmlStruct)
                            );

            return scenariosElement;
        }