Ejemplo n.º 1
0
 public void TestSaveDateEntity()
 {
   var entity = new DateEntity {DateField = DateTime.Now};
   DateEntity savedEntity = Backendless.Persistence.Save( entity );
   Assert.IsNotNull( savedEntity, "Server returned a null result" );
   Assert.IsNotNull( savedEntity.DateField, "Returned object doesn't have expected field" );
   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.IsTrue( savedEntity.DateField.Ticks - entity.DateField.Ticks < 1000,
                  "Returned object has wrong field value" );
 }
Ejemplo n.º 2
0
 protected bool Equals(DateEntity other)
 {
     return(base.Equals(other) && DateField.Equals(other.DateField));
 }
Ejemplo n.º 3
0
 protected bool Equals( DateEntity other )
 {
     return base.Equals( other ) && DateField.Equals( other.DateField );
 }