public void SetUp() { var atom = new Atom( "atom", new[] { new Property("property-name", "property-type", new InheritedPropertyValue("property-alias")) }); var containerSpecification = new ContainerSpecification("container"); var container = containerSpecification.Create(); container.Insert(0, atom); var widgetSpecification = new WidgetSpecification( "widget", new[] { new PropertySpecification("property-alias", "property-type", string.Empty) }, new[] { container }); var buildContext = new BuildData(Enumerable.Empty<IContextItem>()); var widget = widgetSpecification.Create(); widget.FindOrCreateProperty(new PropertySpecification("property-alias", "property-type", string.Empty)); widget.Properties.Single().Value = new FixedPropertyValue("property-value"); var builder = new Builder(RenderingInstructions.BuildForPreview(), w => widgetSpecification, null); this.instance = widget.Build(builder, new[] { 0 }, buildContext); }
public void SetUp() { var atom = new Atom( "atom", new[] { new Property("property-name", "property-type", new InheritedPropertyValue("property-alias")) }); var containerSpecification = new ContainerSpecification("container"); var container = containerSpecification.Create(); container.Insert(0, atom); var widgetSpecification = new WidgetSpecification( "widget", new[] { new PropertySpecification("property-alias", "property-type", string.Empty) }, new[] { container }); var buildContext = new BuildData(Enumerable.Empty <IContextItem>()); var widget = widgetSpecification.Create(); widget.FindOrCreateProperty(new PropertySpecification("property-alias", "property-type", string.Empty)); widget.Properties.Single().Value = new FixedPropertyValue("property-value"); var builder = new Builder(RenderingInstructions.BuildForPreview(), w => widgetSpecification, null); this.instance = widget.Build(builder, new[] { 0 }, buildContext); }
public void SetUp() { var widgetSpecification = new WidgetSpecification("widget"); widgetSpecification.Insert(0, new Placeholder("area 1")); widgetSpecification.Insert(1, new Placeholder("area 2")); this.widget = widgetSpecification.Create(); }
public void SetUp() { var specification = new WidgetSpecification( "widget name", Enumerable.Empty<PropertySpecification>(), new IComponent[] { new Placeholder("area 1"), new Container( "container name", Enumerable.Empty<Property>(), new IComponent[] { new Placeholder("area 2") }) }); this.widget = specification.Create(); }
public void SetUp() { var specification = new WidgetSpecification( "widget name", Enumerable.Empty <PropertySpecification>(), new IComponent[] { new Placeholder("area 1"), new Container( "container name", Enumerable.Empty <Property>(), new IComponent[] { new Placeholder("area 2") }) }); this.widget = specification.Create(); }