public void SetUp() { var atom = new Atom( "atom", new[] { new Property("property-name", "property-type", new InheritedPropertyValue("property-name")) }); var parentSpecification = new ContainerSpecification("parent-container"); var grandparentSpecification = new ContainerSpecification("grandparent-container"); grandparentSpecification.AddProperty(new PropertySpecification("property-name", "property-type", string.Empty)); var buildContext = new BuildData(Enumerable.Empty <IContextItem>()); var parent = parentSpecification.Create(); parent.Insert(0, atom); var grandparent = grandparentSpecification.Create(); grandparent.FindOrCreateProperty(new PropertySpecification("property-name", "property-type", string.Empty)); grandparent.Properties.Single().Value = new FixedPropertyValue("property-value"); grandparent.Insert(0, parent); var builder = new Builder(RenderingInstructions.BuildForPreview(), null, null); this.instance = grandparent.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 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-name")) }); var parentSpecification = new ContainerSpecification("parent-container"); var grandparentSpecification = new ContainerSpecification("grandparent-container"); grandparentSpecification.AddProperty(new PropertySpecification("property-name", "property-type", string.Empty)); var buildContext = new BuildData(Enumerable.Empty<IContextItem>()); var parent = parentSpecification.Create(); parent.Insert(0, atom); var grandparent = grandparentSpecification.Create(); grandparent.FindOrCreateProperty(new PropertySpecification("property-name", "property-type", string.Empty)); grandparent.Properties.Single().Value = new FixedPropertyValue("property-value"); grandparent.Insert(0, parent); var builder = new Builder(RenderingInstructions.BuildForPreview(), null, null); this.instance = grandparent.Build(builder, new[] { 0 }, buildContext); }