Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes the test0.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest0()
        {
            ObjectWithAggregate lResult = new ObjectWithAggregate();

            return(lResult);
        }
Exemplo n.º 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;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes the test0.
 /// </summary>
 /// <returns>a created and initialized object.</returns>
 public static object InitializeTest0()
 {
     ObjectWithAggregate lResult = new ObjectWithAggregate();
     return lResult;
 }