public void WhenMapElementRelationshipThenCallAction()
 {
     var hbm = new CollectionElementRelation(typeof(Address), new HbmMapping(), element => { });
     bool called = false;
     hbm.Element(x=> called = true);
     called.Should().Be.True();
 }
 public void AssignElementRelationship()
 {
     object relationField = null;
     var hbm = new CollectionElementRelation(typeof(Address), new HbmMapping(), element => relationField = element);
     hbm.Element(x => { });
     relationField.Should().Not.Be.Null().And.Be.OfType<HbmElement>().And.ValueOf.Type.Satisfy(
         a => !string.IsNullOrEmpty(a.name));
 }