Beispiel #1
0
        private static ComplexNonBuiltInWithEnumerablePropertyClass CreateComplexNonBuiltInWithEnumerablePropertyClass(int i)
        {
            var object1 = new ComplexNonBuiltInWithEnumerablePropertyClass
            {
                StringValues  = new[] { "Value1", "Value2" },
                ComplexValues =
                    Enumerable.Range(1, i)
                    .Select(x =>
                            new ComplexNonBuiltInClass
                {
                    TheValue = new NonBuiltInClass
                    {
                        TheValue = string.Format("DeepValue{0}", x)
                    }
                })
                    .ToArray()
            };

            return(object1);
        }
        private static ComplexNonBuiltInWithEnumerablePropertyClass CreateComplexNonBuiltInWithEnumerablePropertyClass(int i)
        {
            var object1 = new ComplexNonBuiltInWithEnumerablePropertyClass
            {
                StringValues = new[] { "Value1", "Value2" },
                ComplexValues =
                    Enumerable.Range(1, i)
                              .Select(x =>
                                      new ComplexNonBuiltInClass
                                      {
                                          TheValue = new NonBuiltInClass
                                          {
                                              TheValue = string.Format("DeepValue{0}", x)
                                          }
                                      })
                              .ToArray()
            };

            return object1;
        }