public void NoRecognizeNoDictionaryProperty() { var mapper = new ObjectRelationalMapper(); PropertyInfo mi = typeof(A).GetProperty("Others"); mapper.IsDictionary(mi).Should().Be.False(); }
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(); }
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 NoRecognizeNoDictionaryProperty() { var mapper = new ObjectRelationalMapper(); PropertyInfo mi = typeof (A).GetProperty("Others"); mapper.IsDictionary(mi).Should().Be.False(); }