public static Ps.Root CreateSimpsons() { Ps.Root root = new Ps.Root(); var abraham = new Ps.Person() { FirstName = "Abraham", Gender = Ps.Gender.Male }; var mona = new Ps.Person() { FirstName = "Mona", Gender = Ps.Gender.Female }; var clancy = new Ps.Person() { FirstName = "Clancy", Gender = Ps.Gender.Male }; var jackeline = new Ps.Person() { FirstName = "Jackeline", Gender = Ps.Gender.Female }; var herb = new Ps.Person() { FirstName = "Herb", Gender = Ps.Gender.Male }; var homer = new Ps.Person() { FirstName = "Homer", Gender = Ps.Gender.Male }; var marge = new Ps.Person() { FirstName = "Marge", Gender = Ps.Gender.Female }; var patty = new Ps.Person() { FirstName = "Patty", Gender = Ps.Gender.Female }; var selma = new Ps.Person() { FirstName = "Selma", Gender = Ps.Gender.Female }; var bart = new Ps.Person() { FirstName = "Bart", Gender = Ps.Gender.Male }; var lisa = new Ps.Person() { FirstName = "Lisa", Gender = Ps.Gender.Female }; var maggie = new Ps.Person() { FirstName = "Maggie", Gender = Ps.Gender.Female }; var ling = new Ps.Person() { FirstName = "Ling", Gender = Ps.Gender.Female }; abraham.Spouse = mona; mona.Spouse = abraham; abraham.Children.Add(herb); abraham.Children.Add(homer); mona.Children.Add(herb); mona.Children.Add(homer); clancy.Spouse = jackeline; jackeline.Spouse = clancy; clancy.Children.Add(marge); clancy.Children.Add(patty); clancy.Children.Add(selma); jackeline.Children.Add(marge); jackeline.Children.Add(patty); jackeline.Children.Add(selma); homer.Spouse = marge; marge.Spouse = homer; homer.Children.Add(bart); homer.Children.Add(lisa); homer.Children.Add(maggie); marge.Children.Add(bart); marge.Children.Add(lisa); marge.Children.Add(maggie); selma.Children.Add(ling); root.Persons.Add(abraham); root.Persons.Add(mona); root.Persons.Add(clancy); root.Persons.Add(jackeline); root.Persons.Add(herb); root.Persons.Add(homer); root.Persons.Add(marge); root.Persons.Add(patty); root.Persons.Add(selma); root.Persons.Add(bart); root.Persons.Add(lisa); root.Persons.Add(maggie); root.Persons.Add(ling); return root; }
public static Ps.Root CreateSimpsons() { Ps.Root root = new Ps.Root(); var abraham = new Ps.Person() { FirstName = "Abraham", Gender = Ps.Gender.Male }; var mona = new Ps.Person() { FirstName = "Mona", Gender = Ps.Gender.Female }; var clancy = new Ps.Person() { FirstName = "Clancy", Gender = Ps.Gender.Male }; var jackeline = new Ps.Person() { FirstName = "Jackeline", Gender = Ps.Gender.Female }; var herb = new Ps.Person() { FirstName = "Herb", Gender = Ps.Gender.Male }; var homer = new Ps.Person() { FirstName = "Homer", Gender = Ps.Gender.Male }; var marge = new Ps.Person() { FirstName = "Marge", Gender = Ps.Gender.Female }; var patty = new Ps.Person() { FirstName = "Patty", Gender = Ps.Gender.Female }; var selma = new Ps.Person() { FirstName = "Selma", Gender = Ps.Gender.Female }; var bart = new Ps.Person() { FirstName = "Bart", Gender = Ps.Gender.Male }; var lisa = new Ps.Person() { FirstName = "Lisa", Gender = Ps.Gender.Female }; var maggie = new Ps.Person() { FirstName = "Maggie", Gender = Ps.Gender.Female }; var ling = new Ps.Person() { FirstName = "Ling", Gender = Ps.Gender.Female }; abraham.Spouse = mona; mona.Spouse = abraham; abraham.Children.Add(herb); abraham.Children.Add(homer); mona.Children.Add(herb); mona.Children.Add(homer); clancy.Spouse = jackeline; jackeline.Spouse = clancy; clancy.Children.Add(marge); clancy.Children.Add(patty); clancy.Children.Add(selma); jackeline.Children.Add(marge); jackeline.Children.Add(patty); jackeline.Children.Add(selma); homer.Spouse = marge; marge.Spouse = homer; homer.Children.Add(bart); homer.Children.Add(lisa); homer.Children.Add(maggie); marge.Children.Add(bart); marge.Children.Add(lisa); marge.Children.Add(maggie); selma.Children.Add(ling); root.Persons.Add(abraham); root.Persons.Add(mona); root.Persons.Add(clancy); root.Persons.Add(jackeline); root.Persons.Add(herb); root.Persons.Add(homer); root.Persons.Add(marge); root.Persons.Add(patty); root.Persons.Add(selma); root.Persons.Add(bart); root.Persons.Add(lisa); root.Persons.Add(maggie); root.Persons.Add(ling); return(root); }