public void SetUp() { var property = new Property( "property name", "property type", new VariablePropertyValue( "language code", new[] { new PropertyVariant("en", new FixedPropertyValue("English"), true), new PropertyVariant( "fr", new VariablePropertyValue( "country code", new[] { new PropertyVariant("fr", new FixedPropertyValue("French French")), new PropertyVariant("ca", new FixedPropertyValue("French Canadian")) })) })); var buildContext = new BuildData(new[] { new ContextItem("country code", "ca"), new ContextItem("language code", "fr") }); this.propertyInstance = property.Build(buildContext); }
public void SetUp() { var property = new Property("property name", "property type", new InheritedPropertyValue("key")); var contextItem = MockRepository.GenerateMock<IContextItem>(); contextItem.Stub(c => c.Name).Return("key"); contextItem.Stub(c => c.Value).Return("result"); var context = new[] { contextItem }; var buildContext = new BuildData(Enumerable.Empty<IContextItem>()); buildContext.ContextSets.Push(context); this.propertyInstance = property.Build(buildContext); }
public void SetUp() { var property = new Property( "property name", "property type", new VariablePropertyValue( "language code", new[] { new PropertyVariant("en", new FixedPropertyValue("English"), true), new PropertyVariant("fr", new FixedPropertyValue("Français")) })); var buildContext = new BuildData(Enumerable.Empty<IContextItem>()); this.propertyInstance = property.Build(buildContext); }
public void SetUp() { var property = new Property( "property name", "property type", new VariablePropertyValue( "language code", new[] { new PropertyVariant("en", new FixedPropertyValue("English"), true), new PropertyVariant("fr", new InheritedPropertyValue("french message")) })); var buildContext = new BuildData(new[] { new ContextItem("french message", "Bonjour!"), new ContextItem("language code", "fr") }); this.propertyInstance = property.Build(buildContext); }
public void SetUp() { var propertySpecification = new PropertySpecification("property 1 name", "property 1 type", string.Empty); this.property = propertySpecification.Create(); }
public void SetUp() { var property = new Property("property name", "property type", new FixedPropertyValue("property value")); this.propertyInstance = property.Build(null); }
public void SetUp() { var property = new Property(string.Empty, string.Empty, new FixedPropertyValue("value")); }