Пример #1
0
        public void CanAddManyToOneProperty()
        {
            var properties = new List <object>();
            var map        = new StubPropertyContainerMapper <Animal>(properties);

            map.ManyToOne(animal => animal.Father);

            properties.Should().Have.Count.EqualTo(1);
            object first = properties.First();

            first.Should().Be.OfType <HbmManyToOne>().And.ValueOf.Name.Should().Be.EqualTo("Father");
        }