public void WhenExplicitRegisteredRecognizeMaster() { var mapper = new ObjectRelationalMapper(); mapper.TablePerClass<AEntity>(); mapper.TablePerClass<BEntity>(); mapper.ManyToMany<AEntity, BEntity>(); mapper.IsMasterManyToMany(typeof(AEntity), typeof(BEntity)).Should().Be.True(); }
public void WhenExplicitRegisteredRecognizeInverseRelationAsImplicit() { var mapper = new ObjectRelationalMapper(); mapper.TablePerClass <AEntity>(); mapper.TablePerClass <BEntity>(); mapper.ManyToMany <AEntity, BEntity>(); mapper.IsMasterManyToMany(typeof(BEntity), typeof(AEntity)).Should().Be.False(); }