示例#1
0
        /// <summary>
        /// Initializes the test3.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest3()
        {
            ObjectWithAggregate lResult = new ObjectWithAggregate();

            lResult.AggregatedSimple  = new SimpleObject();
            lResult.AggregatedEnum    = new ObjectWithEnum();
            lResult.AggregatedSimple2 = lResult.AggregatedSimple;
            return(lResult);
        }
示例#2
0
 /// <summary>
 /// Initializes the test1.
 /// </summary>
 /// <returns>a created and initialized object.</returns>
 public static object InitializeTest1()
 {
     ObjectWithAggregate lResult = new ObjectWithAggregate();
     lResult.AggregatedSimple = new SimpleObject();
     lResult.AggregatedEnum = new ObjectWithEnum();
     lResult.AggregatedSimple2 = new SimpleObject();
     lResult.GenericObject3 =  new GenericObject3<int, double, SimpleObject>();
     lResult.GenericObject3.Tuple = new Tuple<int, double, SimpleObject>(12, 44.1, lResult.AggregatedSimple);
     return lResult;
 }
示例#3
0
        /// <summary>
        /// Initializes the test1.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest1()
        {
            ObjectWithAggregate lResult = new ObjectWithAggregate();

            lResult.AggregatedSimple     = new SimpleObject();
            lResult.AggregatedEnum       = new ObjectWithEnum();
            lResult.AggregatedSimple2    = new SimpleObject();
            lResult.GenericObject3       = new GenericObject3 <int, double, SimpleObject>();
            lResult.GenericObject3.Tuple = new Tuple <int, double, SimpleObject>(12, 44.1, lResult.AggregatedSimple);
            return(lResult);
        }
示例#4
0
        /// <summary>
        /// Initializes the test0.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest0()
        {
            ObjectWithAggregate lResult = new ObjectWithAggregate();

            return(lResult);
        }
示例#5
0
 /// <summary>
 /// Initializes the test2.
 /// </summary>
 /// <returns>a created and initialized object.</returns>
 public static object InitializeTest2()
 {
     ObjectWithAggregate lResult = new ObjectWithAggregate();
     lResult.AggregatedSimple = new SimpleObject();
     lResult.AggregatedEnum = new ObjectWithEnum();
     lResult.AggregatedSimple2 = null;
     return lResult;
 }
示例#6
0
 /// <summary>
 /// Initializes the test0.
 /// </summary>
 /// <returns>a created and initialized object.</returns>
 public static object InitializeTest0()
 {
     ObjectWithAggregate lResult = new ObjectWithAggregate();
     return lResult;
 }