protected static Definition SetUpVirtualDefinition() { var df = new Definition { GenDataBase = { DataName = "VirtualDefinition" } }; var c = df.AddClass("Container"); c.AddProperty("Name", dataType: "Identifier"); c.AddSubClass("Abstract"); var a = df.AddClass("Abstract", "Abstract class", "Abstract"); a.AddProperty("Name", dataType: "Identifier"); a.AddSubClass("Virtual1").Relationship = "Extends"; a.AddSubClass("Virtual2").Relationship = "Extends"; a.AddSubClass("Child"); var v1 = df.AddClass("Virtual1"); v1.AddProperty("V1Field"); var v2 = df.AddClass("Virtual2"); v2.AddProperty("V2Field"); var ch = df.AddClass("Child"); ch.AddProperty("Name", dataType: "Identifier"); return(df); }
private static Definition SetUpParentOfVirtualDefinition() { Assert.IsTrue(File.Exists(VirtualDefinitionFile)); Assert.IsTrue(File.Exists(VirtualDataFile)); var df = new Definition { GenDataBase = { DataName = "VirtualParentDefintion" } }; var c = df.AddClass("Parent"); c.AddProperty("Name"); c.AddSubClass("Container", "TestData/VirtualDefinition"); return(df); }