public void IsVirtualRelationEndPoint_UnidirectionalRelation() { var type = typeof(ClassWithRealRelationEndPoints); var propertyInfo = PropertyInfoAdapter.Create(type.GetProperty("Unidirectional")); var relationEndPointReflector = new RdbmsRelationEndPointReflector( ClassDefinitionObjectMother.CreateClassDefinition(classType: type), propertyInfo, Configuration.NameResolver, PropertyMetadataProvider, DomainModelConstraintProviderStub); Assert.That(relationEndPointReflector.IsVirtualEndRelationEndpoint(), Is.False); }
public void IsVirtualEndRelationEndpoint_BidirectionalOneToMany() { RdbmsRelationEndPointReflector relationEndPointReflector = CreateRelationEndPointReflector("BidirectionalOneToMany"); Assert.That(relationEndPointReflector.IsVirtualEndRelationEndpoint(), Is.False); }
public void IsVirtualEndRelationEndpoint_Unidirectional() { RdbmsRelationEndPointReflector relationEndPointReflector = CreateRelationEndPointReflector("Unidirectional"); Assert.That(relationEndPointReflector.IsVirtualEndRelationEndpoint(), Is.False); }