Exemplo n.º 1
0
        public void NoRecognizeNoDictionaryProperty()
        {
            var          mapper = new ObjectRelationalMapper();
            PropertyInfo mi     = typeof(A).GetProperty("Others");

            mapper.IsDictionary(mi).Should().Be.False();
        }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }