Beispiel #1
0
 public void CategorySelfReferenceIsManyToOne() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.ManyToOne, config.GetMap<Category>().Columns["Parent"].Relationship);
 }
Beispiel #2
0
 public void PairReferencedByHasGoodOppositeColumn() {
     var config = new TestConfig();
     Assert.Equal("References", config.GetMap<Pair>().Columns["ReferencedBy"].OppositeColumn.Name);
 }
Beispiel #3
0
 public void CategorySelfReferenceIsOneToMany() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.OneToMany, config.GetMap<Category>().Columns["Children"].Relationship);
 }
Beispiel #4
0
 public void OneToOneLeftHasGoodOppositeColumn() {
     var config = new TestConfig();
     Assert.Equal("Left", config.GetMap<OneToOneLeft>().Columns["Right"].OppositeColumn.Name);
 }
Beispiel #5
0
 public void PairReferencedByIsOneToOneSelfReference() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.OneToOne, config.GetMap<Pair>().Columns["ReferencedBy"].Relationship);
 }
Beispiel #6
0
        public void CategorySelfReferenceIsManyToOne()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.ManyToOne, config.GetMap <Category>().Columns["Parent"].Relationship);
        }
Beispiel #7
0
 public void OneToOneRightIsOneToOne() {
     var config = new TestConfig();
     Assert.Equal(RelationshipType.OneToOne, config.GetMap<OneToOneRight>().Columns["Left"].Relationship);
 }
Beispiel #8
0
        public void CategorySelfReferenceIsOneToMany()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.OneToMany, config.GetMap <Category>().Columns["Children"].Relationship);
        }
Beispiel #9
0
        public void PairReferencedByHasGoodOppositeColumn()
        {
            var config = new TestConfig();

            Assert.Equal("References", config.GetMap <Pair>().Columns["ReferencedBy"].OppositeColumn.Name);
        }
Beispiel #10
0
        public void PairReferencedByIsOneToOneSelfReference()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.OneToOne, config.GetMap <Pair>().Columns["ReferencedBy"].Relationship);
        }
Beispiel #11
0
        public void OneToOneLeftHasGoodOppositeColumn()
        {
            var config = new TestConfig();

            Assert.Equal("Left", config.GetMap <OneToOneLeft>().Columns["Right"].OppositeColumn.Name);
        }
Beispiel #12
0
        public void OneToOneRightIsOneToOne()
        {
            var config = new TestConfig();

            Assert.Equal(RelationshipType.OneToOne, config.GetMap <OneToOneRight>().Columns["Left"].Relationship);
        }