예제 #1
0
        private XElement FormatSteps(ScenarioOutline scenarioOutline)
        {
            if (scenarioOutline.Steps == null)
            {
                return(null);
            }

            return(new XElement(xmlns + "div",
                                new XAttribute("class", "steps"),
                                new XElement(xmlns + "ul",
                                             scenarioOutline.Steps.Select(
                                                 step => htmlStepFormatter.Format(step)))
                                ));
        }
예제 #2
0
 public XElement Format(Scenario scenario, int id)
 {
     return(new XElement(xmlns + "li",
                         new XAttribute("class", "scenario"),
                         htmlImageResultFormatter.Format(scenario),
                         new XElement(xmlns + "div",
                                      new XAttribute("class", "scenario-heading"),
                                      new XElement(xmlns + "h2", scenario.Name),
                                      htmlDescriptionFormatter.Format(scenario.Description)
                                      ),
                         new XElement(xmlns + "div",
                                      new XAttribute("class", "steps"),
                                      new XElement(xmlns + "ul",
                                                   scenario.Steps.Select(step => htmlStepFormatter.Format(step)))
                                      )
                         ));
 }