Пример #1
0
        public void WhenHasMemberCanSetAccessor()
        {
            var member = typeof(Entity).GetProperty("Id",
                                                    BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic
                                                    | BindingFlags.FlattenHierarchy);
            var hbmId  = new HbmId();
            var mapper = new IdMapper(member, hbmId);

            mapper.Access(Accessor.NoSetter);
            Assert.That(hbmId.access, Is.EqualTo("nosetter.camelcase"));
        }