public void WhenMapOneToManyRelationshipThenCallAction()
        {
            var  hbm    = new CollectionElementRelation(typeof(Address), new HbmMapping(), element => { });
            bool called = false;

            hbm.OneToMany(x => called = true);
            called.Should().Be.True();
        }
        public void AssignOneToManyRelationship()
        {
            object relationField = null;
            var    hbm           = new CollectionElementRelation(typeof(Address), new HbmMapping(), element => relationField = element);

            hbm.OneToMany(x => { });
            relationField.Should().Not.Be.Null().And.Be.OfType <HbmOneToMany>()[email protected](
                a => !string.IsNullOrEmpty(a));
        }