Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
        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();
 }