Ejemplo n.º 1
0
        public void Clone_ReadOnly_DataStrategy()
        {
            OrderCollection associatedCollection = CreateAssociatedCollectionWithEndPointStub();
            var             clonedCollection     = associatedCollection.Clone(true);

            // clone is always stand-alone, even when source is associated with end point
            DomainObjectCollectionDataTestHelper.CheckReadOnlyCollectionStrategy(clonedCollection);
        }
Ejemplo n.º 2
0
        public void CreateReadOnlyCollection_DataStrategy()
        {
            var collection = _factory.CreateReadOnlyCollection(typeof(OrderCollection), new Order[0]);

            DomainObjectCollectionDataTestHelper.CheckReadOnlyCollectionStrategy(collection);
        }