Exemplo n.º 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" );
 }
Exemplo n.º 2
0
 protected bool Equals(IntEntity other)
 {
     return base.Equals( other ) && IntField == other.IntField;
 }
Exemplo n.º 3
0
 protected bool Equals(IntEntity other)
 {
     return(base.Equals(other) && IntField == other.IntField);
 }