public void TestWebFile() { var clazz = new Class_WebFile { Attr = new WebFile { Name = "Test1" } }; DataService.UpdateObject(clazz); var clazz2 = new Class_WebFile { __PrimaryKey = clazz.__PrimaryKey }; DataService.LoadObject(clazz2); Assert.True((string)clazz.Attr == (string)clazz2.Attr); clazz2.Attr = new WebFile { Name = "Test2" }; DataService.UpdateObject(clazz2); clazz2 = new Class_WebFile { __PrimaryKey = clazz.__PrimaryKey }; DataService.LoadObject(clazz2); Assert.True((string)clazz.Attr != (string)clazz2.Attr); clazz2.SetStatus(ObjectStatus.Deleted); DataService.UpdateObject(clazz2); clazz2 = new Class_WebFile { __PrimaryKey = clazz.__PrimaryKey }; try { DataService.LoadObject(clazz2); Assert.True(false, "Object not deleted."); } catch (CantFindDataObjectException) { } }