public void StringToDateConversion()
        {
            var mapping = new ColumnPropertyMapping<TestUser, DateTime>("CreatedAt", model => model.CreatedAt, ctx => ctx.ToDateTime());
            var user = new TestUser();

            var context = new ValueContext<TestUser> { ColumnValue = "2009-11-01", Entity = user };
            var value = mapping.ConvertValue(context);
            Assert.Equal(new DateTime(2009,11,01), value);
        }
        public void AutoToStringConversion()
        {
            var mapping = new ColumnPropertyMapping<TestUser, string>("UserName", model => model.Name);
            var user = new TestUser();

            var ctx = new ValueContext<TestUser> {ColumnValue = 22, Entity = user};
            var value = mapping.ConvertValue(ctx);
            Assert.Equal("22", value);
            mapping.SetValue(user, value);
        }