Beispiel #1
0
        public void CanAddSimpleProperty()
        {
            var mapping = new HbmMapping();
            var hbm     = new HbmComponent();
            var map     = new ComponentMapper <Address>(mapping, hbm);

            map.Property(address => address.City);
            hbm.Items.Should().Have.Count.EqualTo(1);
            hbm.Items.First().Should().Be.OfType <HbmProperty>().And.ValueOf.Name.Should().Be.EqualTo("City");
        }