public void SetUp() { theSelection = new OptionSelection{Name = "select"}; theSelection.Options.Add(new Option("a", "a1", "a2")); theSelection.Options.Add(new Option("b", "b1", "b2")); theSelection.Options.Add(new Option("c", "c1", "c2")); theChoices = new TemplateChoices(); theRequest = new ProjectRequest("MyFoo", "baseline"); }
public static OptionSelection BuildSelection(this XmlElement selectionElement) { var selection = new OptionSelection { Name = selectionElement.GetAttribute("name"), Description = selectionElement.GetAttribute("description") }; selection.Options = selectionElement.ReadOptions(); return(selection); }
public static OptionSelection BuildSelection(this XmlElement selectionElement) { var selection = new OptionSelection { Name = selectionElement.GetAttribute("name"), Description = selectionElement.GetAttribute("description") }; selection.Options = selectionElement.ReadOptions(); return selection; }