ChildObjectDefinition() public static method

Create a new ObjectDefinitionBuilder used to construct a child object definition..
public static ChildObjectDefinition ( IObjectDefinitionFactory objectDefinitionFactory, string parentObjectName ) : ObjectDefinitionBuilder
objectDefinitionFactory IObjectDefinitionFactory The object definition factory.
parentObjectName string Name of the parent object.
return ObjectDefinitionBuilder
        public void ObjectNameChild()
        {
            ObjectDefinitionBuilder odb = ObjectDefinitionBuilder.ChildObjectDefinition(odf, typeof(TestObject).FullName);
            ChildObjectDefinition   rod = odb.ObjectDefinition as ChildObjectDefinition;

            Assert.IsNotNull(rod);
            Assert.IsFalse(rod.HasObjectType);
            Assert.AreEqual(typeof(TestObject).FullName, rod.ParentName);
        }