Exemple #1
0
        public void GetRelationEndPointWithLazyLoad_NullObjectEndPoint()
        {
            var endPointDefinition =
                Configuration.GetTypeDefinition(typeof(Order)).GetRelationEndPointDefinition(typeof(Order).FullName + ".OrderTicket");
            var relationEndPointID = RelationEndPointID.Create(null, endPointDefinition);

            var result = _relationEndPointManager.GetRelationEndPointWithLazyLoad(relationEndPointID);

            Assert.That(result, Is.TypeOf(typeof(NullVirtualObjectEndPoint)));
            Assert.That(result.Definition, Is.EqualTo(endPointDefinition));
        }