Beispiel #1
0
        public void CanSetAccessor()
        {
            var mapdoc    = new HbmMapping();
            var component = new HbmDynamicComponent();
            var mapper    = new DynamicComponentMapper(component, For <Person> .Property(p => p.Info), mapdoc);

            mapper.Access(Accessor.Field);
            component.access.Should().Be("field.camelcase");
        }
        public void CanSetAccessor()
        {
            var mapdoc    = new HbmMapping();
            var component = new HbmDynamicComponent();
            var mapper    = new DynamicComponentMapper(component, For <Person> .Property(p => p.Info), mapdoc);

            mapper.Access(Accessor.Field);
            Assert.That(component.access, Is.EqualTo("field.camelcase"));
        }