예제 #1
0
        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);
        }
예제 #2
0
        public void IsVirtualEndRelationEndpoint_BidirectionalOneToMany()
        {
            RdbmsRelationEndPointReflector relationEndPointReflector = CreateRelationEndPointReflector("BidirectionalOneToMany");

            Assert.That(relationEndPointReflector.IsVirtualEndRelationEndpoint(), Is.False);
        }
예제 #3
0
        public void IsVirtualEndRelationEndpoint_Unidirectional()
        {
            RdbmsRelationEndPointReflector relationEndPointReflector = CreateRelationEndPointReflector("Unidirectional");

            Assert.That(relationEndPointReflector.IsVirtualEndRelationEndpoint(), Is.False);
        }