public void TestSaveBooleanEntityAsync() { RunAndAwait( () => { var EntityAsync = new BooleanEntityAsync {BooleanField = false}; Backendless.Persistence.Save( EntityAsync, new ResponseCallback<BooleanEntityAsync>( 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.BooleanField, savedEntityAsync.BooleanField, "Returned object has wrong field value" ); CountDown(); } } ); } ); }
protected bool Equals( BooleanEntityAsync other ) { return base.Equals( other ) && BooleanField.Equals( other.BooleanField ); }
protected bool Equals(BooleanEntityAsync other) { return(base.Equals(other) && BooleanField.Equals(other.BooleanField)); }