public void SetUp() { grammar1 = new ConfigureObjectGrammar <ConfiguredObject, int>("age", (o, age) => o.Age = age); grammar2 = new ConfigureObjectGrammar <ConfiguredObject, string>("name", (o, name) => o.Name = name); grammar2.DefaultValue = "Han Solo"; context = new TestContext(); target = new ConfiguredObject(); context.CurrentObject = target; }
public void SetUp() { grammar1 = new ConfigureObjectGrammar<ConfiguredObject, int>("age", (o, age) => o.Age = age); grammar2 = new ConfigureObjectGrammar<ConfiguredObject, string>("name", (o, name) => o.Name = name); grammar2.DefaultValue = "Han Solo"; context = new TestContext(); target = new ConfiguredObject(); context.CurrentObject = target; }