public void It_wraps_poco_in_adapter()
 {
     var obj = new ClrPoco();
     var entityType = CreateModel().GetEntityType(typeof(ClrPoco));
     var entry = _factory.Create(entityType, obj);
     var adapter = new StateEntryTableEntityAdapter<ClrPoco>(entry);
     Assert.Same(obj, adapter.Entity);
 }
        public void It_writes_to_clr_properties()
        {
            var obj = new ClrPoco();
            var entityType = CreateModel().GetEntityType(typeof(ClrPoco));
            var entry = _factory.Create(entityType, obj);
            var adapter = new StateEntryTableEntityAdapter<ClrPoco>(entry);

            adapter.PartitionKey = "PartitionKey";
            adapter.RowKey = "RowKey";
            var timestamp = DateTime.Now;
            adapter.Timestamp = timestamp;

            Assert.Equal("PartitionKey", obj.PartitionKey);
            Assert.Equal("RowKey", obj.RowKey);
            Assert.Equal(timestamp, obj.Timestamp);
        }