private void PopulateStringListOnTestClass(TestClass testObject) { testObject.ListOfStringProperty = new List<string>() { "this", "is", "a", "list", "of", "strings" }; }
private void PopulateObjectListOnTestClass(TestClass testObject) { testObject.ListOfObjectProperty = new List<TestClass>() { new TestClass() { StringProperty = "this is the first object", IntProperty = 1, DoubleProperty = 1.01 }, new TestClass() { StringProperty = "this is the second object", IntProperty = 2, DoubleProperty = 2.02 }, new TestClass() { StringProperty = "this is the third object", IntProperty = 3, DoubleProperty = 3.03 } }; }