public void NoBidiretional() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(AEntity), typeof(CEntity))).Should().Be.False(); p.Match(new Relation(typeof(BEntity), typeof(CEntity))).Should().Be.False(); }
public void BidiretionalOnDictionaryValue() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(Parent), typeof(HasMapValue))).Should().Be.True(); p.Match(new Relation(typeof(HasMapValue), typeof(Parent))).Should().Be.True(); }
public void BidiretionalInherited() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(AInherited), typeof(BEntity))).Should().Be.True(); p.Match(new Relation(typeof(BEntity), typeof(AInherited))).Should().Be.True(); }
public void BidiretionalManyToMany() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(Parent), typeof(Role))).Should().Be.True(); p.Match(new Relation(typeof(Role), typeof(Parent))).Should().Be.True(); }
public void NoBidiretional() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(AEntity), typeof(CEntity))).Should().Be.False(); p.Match(new Relation(typeof(BEntity), typeof(CEntity))).Should().Be.False(); }
public void BidiretionalSimple() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(AEntity), typeof(BEntity))).Should().Be.True(); p.Match(new Relation(typeof(BEntity), typeof(AEntity))).Should().Be.True(); }
public void BidiretionalOneToMany() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(Parent), typeof(Child))).Should().Be.True(); p.Match(new Relation(typeof(Child), typeof(Parent))).Should().Be.True(); }
public void BidiretionalOnDictionaryValue() { var p = new BidirectionalRelationPattern(); p.Match(new Relation(typeof(Parent), typeof(HasMapValue))).Should().Be.True(); p.Match(new Relation(typeof(HasMapValue), typeof(Parent))).Should().Be.True(); }