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 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(); }
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 NotRecognizeExplicitRegisteredAsListProperty() { var mapper = new ObjectRelationalMapper(); mapper.List <A>(x => x.Array); var mi = typeof(A).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 NotRecognizeCollectionAsArray() { var childrenProperty = typeof(Parent).GetProperty("Children"); orm.IsArray(childrenProperty).Should().Be.False(); }