Пример #1
0
 public void TestSaveBooleanEntity()
 {
   var entity = new BooleanEntity {BooleanField = false};
   BooleanEntity 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.BooleanField, savedEntity.BooleanField, "Returned object has wrong field value" );
 }
Пример #2
0
 protected bool Equals(BooleanEntity other)
 {
     return(base.Equals(other) && BooleanField.Equals(other.BooleanField));
 }
Пример #3
0
 protected bool Equals( BooleanEntity other )
 {
     return base.Equals( other ) && BooleanField.Equals( other.BooleanField );
 }