public void WhenInBaseClassThenRecognizeListProperty() { var mapper = new ObjectRelationalMapper(); var mi = typeof(B).GetProperty("List"); mapper.IsList(mi).Should().Be.True(); }
public void WhenInBaseClassThenNotRecognizeExplicitRegisteredAsBagProperty() { var mapper = new ObjectRelationalMapper(); mapper.Bag<A>(x => x.List); var mi = typeof(B).GetProperty("List"); mapper.IsList(mi).Should().Be.False(); }
public void NotRecognizeNoRegisteredAsListProperty() { var mapper = new ObjectRelationalMapper(); var mi = typeof(A).GetProperty("Bag"); mapper.IsList(mi).Should().Be.False(); }
public void RecognizeExplicitRegisteredAsListProperty() { var mapper = new ObjectRelationalMapper(); mapper.List<A>(x => x.Bag); var mi = typeof(A).GetProperty("Bag"); mapper.IsList(mi).Should().Be.True(); }
public void NotRecognizeExplicitRegisteredAsArrayProperty() { var mapper = new ObjectRelationalMapper(); mapper.Array<A>(x => x.List); var mi = typeof(A).GetProperty("List"); mapper.IsList(mi).Should().Be.False(); }
public void WhenInBaseClassThenNotRecognizeExplicitRegisteredAsBagProperty() { var mapper = new ObjectRelationalMapper(); mapper.Bag <A>(x => x.List); var mi = typeof(B).GetProperty("List"); mapper.IsList(mi).Should().Be.False(); }
public void NotRecognizeExplicitRegisteredAsArrayProperty() { var mapper = new ObjectRelationalMapper(); mapper.Array <A>(x => x.List); var mi = typeof(A).GetProperty("List"); mapper.IsList(mi).Should().Be.False(); }
public void RecognizeExplicitRegisteredAsListProperty() { var mapper = new ObjectRelationalMapper(); mapper.List <A>(x => x.Bag); var mi = typeof(A).GetProperty("Bag"); mapper.IsList(mi).Should().Be.True(); }
public void NotRecognizeCollectionAsList() { var childrenProperty = typeof(Parent).GetProperty("Children"); orm.IsList(childrenProperty).Should().Be.False(); }