public void Initialize()
        {
            this.store = new DslTestStore<ProductStateStoreDomainModel>();

            var elementInfo = new Mock<IElementInfo>();

            using (var tx = this.store.TransactionManager.BeginTransaction())
            {
                this.element = this.store.ElementFactory.CreateElement<Element>();
                this.element.Info = elementInfo.Object;
                tx.Commit();
            }

            this.propertyInfo = new Mock<IPropertyInfo>();
            this.propertyInfo.Setup(v => v.Id).Returns(Guid.NewGuid());
            this.propertyInfo.Setup(v => v.Parent).Returns(this.element.Info);

            elementInfo.Setup(e => e.Properties).Returns(new[] { this.propertyInfo.Object });
        }
            public override void Initialize()
            {
                base.Initialize();

                this.Leaf = this.Product.View
                    .Elements.Find(q => q.DefinitionName == "Q")
                    .Elements.Find(t => t.DefinitionName == "T")
                    .Elements.Find(u => u.DefinitionName == "U") as Element;

            }
            public override void Initialize()
            {
                base.Initialize();

                this.Branch = this.Product.View
                    .Elements.Find(q => q.DefinitionName == "Q")
                    .Elements.Find(t => t.DefinitionName == "R") as Element;
            }
 public override void Initialize()
 {
     base.Initialize();
     CreateProperty(this.Product, this.Product.DefinitionName + "Property1", this.Product.DefinitionName + "Value1");
     this.View = CreateView(this.Product, "AView");
     this.Element = CreateElement(this.View, "N", Cardinality.ZeroToMany);
 }