//Advance data public static ComplexDataType[] GetComplexTwoLevelMockupDataPolymorfic() { var data = new List<ComplexDataType>(); var comp1 = new ComplexPropertyLevel2() { StringValue = "ComlpexLevel2" }; var comp2 = new ComplexPropertyLevel12() { ComplexProperty = comp1, StringValue = "ComplexLevel1", PolymorficString = "PolymorficString"}; data.Add(new ComplexDataType() { StringValue = "prop1", DecimalValue = 1, IntegerValue = 2, ComplexProperty = comp2 }); data.Add(new ComplexDataType() { StringValue = "prop2", DecimalValue = 100, IntegerValue = 3, ComplexProperty = comp2 }); return data.ToArray(); }
//Advance data public static ComplexDataType[] GetComplexTwoLevelMockupData() { var data = new List<ComplexDataType>(); var comp1 = new ComplexPropertyLevel2() { StringValue = "ComlpexLevel2" }; var comp2 = new ComplexPropertyLevel1() { ComplexProperty = comp1, StringValue = "ComplexLevel1" }; //Line items var complexLineItem1 = new ComplexPropertyLevel2() { StringValue = "LineComplexValue1" }; var complexLineItem2 = new ComplexPropertyLevel2() { StringValue = "LineComplexValue2" }; var comp1List = new List<ComplexPropertyLevel1>(); comp1List.Add(new ComplexPropertyLevel1() { StringValue = "Line1", ComplexProperty = complexLineItem1 }); comp1List.Add(new ComplexPropertyLevel1() { StringValue = "Line2", ComplexProperty = complexLineItem2 }); //Result data.Add(new ComplexDataType() { StringValue = "prop1", DecimalValue = 1, IntegerValue = 2, ComplexProperty = comp2, ComplexPropertyList = comp1List, ComplexPropertyList2 = comp1List}); data.Add(new ComplexDataType() { StringValue = "prop2", DecimalValue = 100, IntegerValue = 3, ComplexProperty = comp2, ComplexPropertyList = comp1List, ComplexPropertyList2 = comp1List }); return data.ToArray(); }