Exemple #1
0
        public void SetDataFromSubTransaction_InvalidDefinition()
        {
            var            otherID = RelationEndPointObjectMother.CreateRelationEndPointID(DomainObjectIDs.OrderTicket1, "Order");
            ObjectEndPoint source  = RelationEndPointObjectMother.CreateRealObjectEndPoint(otherID);

            _endPointPartialMock.SetDataFromSubTransaction(source);
        }
Exemple #2
0
        public void GetOppositeRelationEndPointIDs_UnidirectionalEndPoint()
        {
            var endPointID = RelationEndPointObjectMother.CreateRelationEndPointID(DomainObjectIDs.Location1, "Client");
            var endPoint   = RelationEndPointObjectMother.CreateRealObjectEndPoint(endPointID);

            Assert.That(endPoint.Definition.GetOppositeEndPointDefinition().IsAnonymous, Is.True);

            var oppositeEndPointIDs = endPoint.GetOppositeRelationEndPointIDs().ToArray();

            Assert.That(oppositeEndPointIDs, Is.Empty);
        }