Ejemplo n.º 1
0
        public void CreateCollectionEndPoint_AnonymousEndPoint()
        {
            var endPointID = RelationEndPointObjectMother.CreateAnonymousEndPointID();

            Assert.That(
                () => _factory.CreateCollectionEndPoint(endPointID),
                Throws.ArgumentException.With.Message.EqualTo("End point ID must not refer to an anonymous end point.\r\nParameter name: id"));
        }
Ejemplo n.º 2
0
        public void Initialize_WithAnonymousEndPointID_Throws()
        {
            var endPointID = RelationEndPointObjectMother.CreateAnonymousEndPointID();

            new CollectionEndPoint(
                TestableClientTransaction,
                endPointID,
                _collectionManagerMock,
                _lazyLoaderMock,
                _endPointProviderStub,
                _transactionEventSinkStub,
                _dataManagerFactoryStub);
        }