private static Component GetInitializedComponent() { var component = new Component(); var sub1 = new SubComponent(); var sub2 = new SubComponent(); component.Name = "Comp1"; sub1.SubName = "Sub1"; sub1.SubName1 = "Sub1x"; sub2.SubName = "Sub2"; sub2.SubName1 = "Sub2x"; sub1.Nested = sub2; component.SubComponent = sub1; return component; }
private static Component GetInitializedComponent() { var component = new Component(); var sub1 = new SubComponent(); var sub2 = new SubComponent(); component.Name = "Comp1"; sub1.SubName = "Sub1"; sub1.SubName1 = "Sub1x"; sub2.SubName = "Sub2"; sub2.SubName1 = "Sub2x"; sub1.Nested = sub2; component.SubComponent = sub1; return(component); }