Beispiel #1
0
 protected bool Equals( IntEntityAsync other )
 {
     return base.Equals( other ) && IntField == other.IntField;
 }
Beispiel #2
0
 protected bool Equals(IntEntityAsync other)
 {
     return(base.Equals(other) && IntField == other.IntField);
 }
 public void TestSaveIntEntityAsync()
 {
   RunAndAwait( () =>
     {
       var EntityAsync = new IntEntityAsync {IntField = 16};
       Backendless.Persistence.Save( EntityAsync,
                                     new ResponseCallback<IntEntityAsync>( this )
                                       {
                                         ResponseHandler = savedEntityAsync =>
                                           {
                                             Assert.IsNotNull( savedEntityAsync, "Server returned a null result" );
                                             Assert.IsNotNull( savedEntityAsync.ObjectId,
                                                               "Returned object doesn't have expected field id" );
                                             Assert.IsNotNull( savedEntityAsync.Created,
                                                               "Returned object doesn't have expected field created" );
                                             Assert.AreEqual( EntityAsync.IntField, savedEntityAsync.IntField,
                                                              "Returned object has wrong field value" );
                                             CountDown();
                                           }
                                       } );
     } );
 }