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