Beispiel #1
0
 public void updateObjectTest()
 {
     API parent = _api;
     data target = new data(parent);
     createObjectTest();
     long obj_id = _objectID;
     var properties = new Dictionary<string, string> { { Constants.TestObjectPropertyName, Constants.TestObjectPropertyNewName } };
     bool replace = true;
     target.updateObject(obj_id, properties, replace);
     var newObject = target.getObject(obj_id, null);
     Assert.IsTrue(newObject.Untyped.Value.IndexOf(Constants.TestObjectPropertyNewName) > 0);
 }
Beispiel #2
0
 public void setObjectPropertyTest()
 {
     API parent = _api;
     data target = new data(parent);
     createObjectTest();
     long obj_id = _objectID;
     string prop_name = Constants.TestObjectPropertyName;
     string prop_value = Constants.TestPropertyValue;
     target.setObjectProperty(obj_id, prop_name, prop_value);
     var typ = target.getObject(_objectID,null);
     Assert.IsTrue(typ.Untyped.Value.IndexOf(prop_value) > 0);
 }