예제 #1
0
        public void WhenInBaseClassThenRecognizeBagProperty()
        {
            var mapper = new ObjectRelationalMapper();
            var mi     = typeof(B).GetProperty("Array");

            mapper.IsArray(mi).Should().Be.True();
        }
예제 #2
0
        public void RecognizeListProperty()
        {
            var mapper = new ObjectRelationalMapper();
            var mi     = typeof(A).GetProperty("Array");

            mapper.IsArray(mi).Should().Be.True();
        }
예제 #3
0
        public void NotRecognizeNoRegisteredAsArrayProperty()
        {
            var mapper = new ObjectRelationalMapper();
            var mi     = typeof(A).GetProperty("Bag");

            mapper.IsArray(mi).Should().Be.False();
        }
 public void WhenInBaseClassThenNotRecognizeExplicitRegisteredAsSetProperty()
 {
     var mapper = new ObjectRelationalMapper();
     mapper.Bag<A>(x => x.Array);
     var mi = typeof(B).GetProperty("Array");
     mapper.IsArray(mi).Should().Be.False();
 }
 public void RecognizeExplicitRegisteredAsArrayProperty()
 {
     var mapper = new ObjectRelationalMapper();
     mapper.Array<A>(x => x.Bag);
     var mi = typeof(A).GetProperty("Bag");
     mapper.IsArray(mi).Should().Be.True();
 }
 public void NotRecognizeExplicitRegisteredAsListProperty()
 {
     var mapper = new ObjectRelationalMapper();
     mapper.List<A>(x => x.Array);
     var mi = typeof(A).GetProperty("Array");
     mapper.IsArray(mi).Should().Be.False();
 }
예제 #7
0
        public void WhenInBaseClassThenNotRecognizeExplicitRegisteredAsSetProperty()
        {
            var mapper = new ObjectRelationalMapper();

            mapper.Bag <A>(x => x.Array);
            var mi = typeof(B).GetProperty("Array");

            mapper.IsArray(mi).Should().Be.False();
        }
예제 #8
0
        public void NotRecognizeExplicitRegisteredAsListProperty()
        {
            var mapper = new ObjectRelationalMapper();

            mapper.List <A>(x => x.Array);
            var mi = typeof(A).GetProperty("Array");

            mapper.IsArray(mi).Should().Be.False();
        }
예제 #9
0
        public void RecognizeExplicitRegisteredAsArrayProperty()
        {
            var mapper = new ObjectRelationalMapper();

            mapper.Array <A>(x => x.Bag);
            var mi = typeof(A).GetProperty("Bag");

            mapper.IsArray(mi).Should().Be.True();
        }
 public void WhenInBaseClassThenRecognizeBagProperty()
 {
     var mapper = new ObjectRelationalMapper();
     var mi = typeof(B).GetProperty("Array");
     mapper.IsArray(mi).Should().Be.True();
 }
 public void RecognizeListProperty()
 {
     var mapper = new ObjectRelationalMapper();
     var mi = typeof(A).GetProperty("Array");
     mapper.IsArray(mi).Should().Be.True();
 }
 public void NotRecognizeNoRegisteredAsArrayProperty()
 {
     var mapper = new ObjectRelationalMapper();
     var mi = typeof(A).GetProperty("Bag");
     mapper.IsArray(mi).Should().Be.False();
 }
        public void NotRecognizeCollectionAsArray()
        {
            var childrenProperty = typeof(Parent).GetProperty("Children");

            orm.IsArray(childrenProperty).Should().Be.False();
        }