public void Replace()
        {
            _collectionEndPointMock.Expect(mock => mock.CreateReplaceCommand(17, _orderItem1)).Return(_commandStub);
            _collectionEndPointMock.Expect(mock => mock.Touch());
            _collectionEndPointMock.Replay();
            _commandStub.Stub(stub => stub.ExpandToAllRelatedObjects()).Return(_expandedCommandFake);

            _delegatingData.Replace(17, _orderItem1);

            _collectionEndPointMock.VerifyAllExpectations();
            DataManagementCommandTestHelper.AssertNotifyAndPerformWasCalled(_nestedCommandMock);
        }
        public void Remove_ID()
        {
            _endPointDataStub.Stub(stub => stub.GetObject(_orderItem1.ID)).Return(_orderItem1);
            _collectionEndPointMock.Expect(mock => mock.GetData()).Return(_endPointDataDecorator);
            _collectionEndPointMock.Expect(mock => mock.CreateRemoveCommand(_orderItem1)).Return(_commandStub);
            _collectionEndPointMock.Expect(mock => mock.Touch());
            _collectionEndPointMock.Replay();
            _commandStub.Stub(stub => stub.ExpandToAllRelatedObjects()).Return(_expandedCommandFake);

            var result = _delegatingData.Remove(_orderItem1.ID);

            _collectionEndPointMock.VerifyAllExpectations();
            DataManagementCommandTestHelper.AssertNotifyAndPerformWasCalled(_nestedCommandMock);

            Assert.That(result, Is.True);
        }