示例#1
0
 public void TestSaveIntEntity()
 {
   var entity = new IntEntity {IntField = 16};
   IntEntity savedEntity = Backendless.Persistence.Save( entity );
   Assert.IsNotNull( savedEntity, "Server returned a null result" );
   Assert.IsNotNull( savedEntity.ObjectId, "Returned object doesn't have expected field id" );
   Assert.IsNotNull( savedEntity.Created, "Returned object doesn't have expected field created" );
   Assert.AreEqual( entity.IntField, savedEntity.IntField, "Returned object has wrong field value" );
 }
示例#2
0
 protected bool Equals(IntEntity other)
 {
     return base.Equals( other ) && IntField == other.IntField;
 }
示例#3
0
 protected bool Equals(IntEntity other)
 {
     return(base.Equals(other) && IntField == other.IntField);
 }