예제 #1
0
        public void NoRecognizeNoDictionaryProperty()
        {
            var          mapper = new ObjectRelationalMapper();
            PropertyInfo mi     = typeof(A).GetProperty("Others");

            mapper.IsDictionary(mi).Should().Be.False();
        }
예제 #2
0
        public void RecognizeDictionaryProperty()
        {
            var          mapper = new ObjectRelationalMapper();
            PropertyInfo mi     = typeof(A).GetProperty("NickNames");

            mapper.IsDictionary(mi).Should().Be.True();
        }
 public void RecognizeExplicitRegisteredDictionaryProperty()
 {
     var mapper = new ObjectRelationalMapper();
     mapper.Dictionary<A>(x => x.Emails);
     PropertyInfo mi = typeof(A).GetProperty("Emails");
     mapper.IsDictionary(mi).Should().Be.True();
 }
예제 #4
0
        public void RecognizeExplicitRegisteredDictionaryProperty()
        {
            var mapper = new ObjectRelationalMapper();

            mapper.Dictionary <A>(x => x.Emails);
            PropertyInfo mi = typeof(A).GetProperty("Emails");

            mapper.IsDictionary(mi).Should().Be.True();
        }
 public void RecognizeDictionaryProperty()
 {
     var mapper = new ObjectRelationalMapper();
     PropertyInfo mi = typeof(A).GetProperty("NickNames");
     mapper.IsDictionary(mi).Should().Be.True();
 }
 public void NoRecognizeNoDictionaryProperty()
 {
     var mapper = new ObjectRelationalMapper();
     PropertyInfo mi = typeof (A).GetProperty("Others");
     mapper.IsDictionary(mi).Should().Be.False();
 }