public void TimestampInsert()
        {
            TestDatabase db = new TestDatabase();

            TimestampEntity entity = new TimestampEntity() { Id = 1 };
            db.TimestampEntities.Insert(entity);
        }
        public void TimestampReturnedOnInsert()
        {
            TestDatabase db = new TestDatabase();
            TimestampEntity entity = new TimestampEntity() { Id = 1 };
            Timestamp timestamp = entity.Timestamp;

            db.TimestampEntities.Insert(entity);

            Assert.AreNotEqual(timestamp, entity.Timestamp);
        }
        public void TimestampChangedOnInsert()
        {
            TestDatabase db = new TestDatabase();

            TimestampEntity entity = new TimestampEntity() { Id = 1 };
            Timestamp timestamp = entity.Timestamp;

            db.TimestampEntities.Insert(entity);

            Assert.AreNotEqual(timestamp, db.TimestampEntities.Single(t => t.Id == 1).Timestamp);
        }
        public void TimestampReturnedOnUpdate()
        {
            TestDatabase db = new TestDatabase();
            TimestampEntity entity = new TimestampEntity() { Id = 1 };

            db.TimestampEntities.Insert(entity);
            Timestamp timestamp = entity.Timestamp;

            entity.Data = "altered";
            db.TimestampEntities.Update(entity);


            Assert.AreNotEqual(timestamp, entity.Timestamp);
        }