public void WhenRegisterCollectionToCollectionThenFindRelation() { var orm = new ObjectRelationalMapper(); orm.Bidirectional <B, A>(b => b.Generic, a => a.Bag); orm.GetBidirectionalMember(typeof(A), ForClass <A> .Property(x => x.Bag), typeof(B)).Should().Be(ForClass <B> .Property(x => x.Generic)); orm.GetBidirectionalMember(typeof(B), ForClass <B> .Property(x => x.Generic), typeof(A)).Should().Be(ForClass <A> .Property(x => x.Bag)); }