public void Can_set_option_set_value_using_enum()
        {
            var entity = new xts_entity {
                Id = Guid.NewGuid()
            };

            var txEntity = new TransactionContextEntity <xts_entity>(entity);

            txEntity.Set(e => e.xts_optionsetvalue, TestOptions.SomeValue);

            Assert.Equal(47, entity.Get(e => e.xts_optionsetvalue).Value);
        }
        public void Can_set_money_using_decimal()
        {
            var entity = new xts_entity {
                Id = Guid.NewGuid()
            };

            var txEntity = new TransactionContextEntity <xts_entity>(entity);

            txEntity.Set(e => e.xts_money, 1234);

            Assert.Equal(1234m, entity.Get(e => e.xts_money).Value);
        }
        public void Can_set_to_attribute()
        {
            var date     = DateTime.UtcNow;
            var provider = Substitute.For <ValueProviderBase <DateTime?> >();

            provider.GetValue().Returns(date);

            var entity = new xts_entity();

            entity.Set(e => e.xts_datetime, provider);
            Assert.Equal(date, entity.Get(e => e.xts_datetime));
        }