示例#1
0
        public void TestInitialize()
        {
            this.testFieldObject = new SimpleField
            {
                boolField = true,
                floatField = 1.2f,
                integerField = 5,
                stringField = "test"
            };

            this.testPropertyObject = new SimpleProperty(true, "test", 1.2f)
            {
                StringProperty = "test",
                IntegerProperty = 5,
                FloatProperty = 1.2f,
                BoolProperty = true,
                ActualNameInJsonAttribute = 5
            };

            this.testComplexObject = new ComplexObject()
            {
                TestBoolean = true,
                testField = 1.2f,
                NestedObject = new NestedObject() { testfield = "test", TestProperty = 5 }
            };

            this.changer = new UntypedObjectChanger();
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UntypedCollection"/> class. 
 /// Creates an instance of UntypedCollection
 /// </summary>
 /// <param name="collectionName">
 /// The name of the collection
 /// </param>
 public UntypedCollection(string collectionName)
 {
     this.CollectionName = collectionName;
     this.objects = new Dictionary<string, JObject>();
     this.changer = new UntypedObjectChanger();
 }