public void SetUp() { this.Template.Insert(0, new Atom("the atom", Enumerable.Empty<Property>())); var propertiespecification = new PropertySpecification("property name", "property type", string.Empty); this.ComponentSpecification.Stub(s => s.Properties).Return(new[] { propertiespecification }); var amendment = new SetPropertyFixedAmendment(new[] { 0 }, "property name", "updated value"); this.Visitor.Visit(amendment); }
public void SetUp() { this.Template.Insert(0, new Atom("the atom", new [] { new Property("property name", "property type", new FixedPropertyValue("fixed value")) })); var propertiespecification = new PropertySpecification("property name", "property type", string.Empty); this.ComponentSpecification.Stub(s => s.Properties).Return(new[] { propertiespecification }); var amendment = new ResetPropertyAmendment(new[] { 0 }, "property name"); this.Visitor.Visit(amendment); }
public void SetUp() { var propertySpecification = new PropertySpecification("property 1 name", "property 1 type", string.Empty); this.property = propertySpecification.Create(); }
public void AddProperty(PropertySpecification property) { this.properties.Add(property); }