Example #1
0
 protected bool Equals(DoubleEntityAsync other)
 {
     return(base.Equals(other) && DoubleField.Equals(other.DoubleField));
 }
Example #2
0
 protected bool Equals( DoubleEntityAsync other )
 {
     return base.Equals( other ) && DoubleField.Equals( other.DoubleField );
 }
 public void TestSaveDoubleEntityAsync()
 {
   RunAndAwait( () =>
     {
       var EntityAsync = new DoubleEntityAsync {DoubleField = 16.1616d};
       Backendless.Persistence.Save( EntityAsync,
                                     new ResponseCallback<DoubleEntityAsync>( 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.DoubleField, savedEntityAsync.DoubleField,
                                                              0.000000d, "Returned object has wrong field value" );
                                             CountDown();
                                           }
                                       } );
     } );
 }