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); }
public void CreateReadOnlyCollection_DataStrategy() { var collection = _factory.CreateReadOnlyCollection(typeof(OrderCollection), new Order[0]); DomainObjectCollectionDataTestHelper.CheckReadOnlyCollectionStrategy(collection); }