Esempio n. 1
0
        public void Visit(SetPropertyInheritedAmendment amendment)
        {
            var component = this.componentCollection.FindComponentWithProperties(amendment.ComponentPath);
            var specification = this.specificationLibrary.Lookup(component.Name);

            var property = component.FindOrCreateProperty(specification.Properties.Find(amendment.PropertyName));

            property.Value = new InheritedPropertyValue(amendment.Key);
        }
Esempio n. 2
0
        public void Visit(SetPropertyInheritedAmendment amendment)
        {
            var component     = this.componentCollection.FindComponentWithProperties(amendment.ComponentPath);
            var specification = this.specificationLibrary.Lookup(component.Name);

            var property = component.FindOrCreateProperty(specification.Properties.Find(amendment.PropertyName));

            property.Value = new InheritedPropertyValue(amendment.Key);
        }
Esempio n. 3
0
 public AmendmentSurrogate Visit(SetPropertyInheritedAmendment amendment)
 {
     return(new SetPropertyInheritedAmendmentSurrogate
     {
         ComponentPath = amendment.ComponentPath.ToComponentPathString(),
         PropertyName = amendment.PropertyName,
         Key = amendment.Key
     });
 }
Esempio n. 4
0
 public AmendmentResource Visit(SetPropertyInheritedAmendment amendment, int index)
 {
     return(new SetPropertyInheritedAmendmentResource
     {
         Id = index,
         ComponentPath = amendment.ComponentPath.ToComponentPathString(),
         PropertyName = amendment.PropertyName,
         Key = amendment.Key,
         Links = this.BuildLinks(amendment, index)
     });
 }