Ejemplo n.º 1
0
        /// <summary>
        /// Initializes the test1.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest1()
        {
            ObjectWithObjectList lResult = new ObjectWithObjectList();
            lResult.SimpleObjectsValues = new List<SimpleObject>();

            lResult.SimpleObjectsValues.Add(new SimpleObject { BooleanValue = false, DoubleValue = 42.1 });
            lResult.SimpleObjectsValues.Add(null);
            return lResult;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes the test1.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest1()
        {
            ObjectWithObjectList lResult = new ObjectWithObjectList();

            lResult.SimpleObjectsValues = new List <SimpleObject>();

            lResult.SimpleObjectsValues.Add(new SimpleObject {
                BooleanValue = false, DoubleValue = 42.1
            });
            lResult.SimpleObjectsValues.Add(null);
            return(lResult);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes the test0.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest0()
        {
            ObjectWithObjectList lResult = new ObjectWithObjectList();
            lResult.SimpleObjectsValues = new List<SimpleObject>();

            lResult.SimpleObjectsValues.Add(new SimpleObject { BooleanValue = false, DoubleValue = 42.1 });
            lResult.SimpleObjectsValues.Add(new InheritedObject
            {
                DoubleValue = 31.125,
                BooleanValue = true,
                Message = "LX"
            });
            return lResult;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes the test0.
        /// </summary>
        /// <returns>a created and initialized object.</returns>
        public static object InitializeTest0()
        {
            ObjectWithObjectList lResult = new ObjectWithObjectList();

            lResult.SimpleObjectsValues = new List <SimpleObject>();

            lResult.SimpleObjectsValues.Add(new SimpleObject {
                BooleanValue = false, DoubleValue = 42.1
            });
            lResult.SimpleObjectsValues.Add(new InheritedObject
            {
                DoubleValue  = 31.125,
                BooleanValue = true,
                Message      = "LX"
            });
            return(lResult);
        }