Beispiel #1
0
        public void Insert()
        {
            StubInnerData(_order1);

            _modificationCheckingDecorator.Insert(0, _order3);

            _wrappedDataMock.AssertWasCalled(mock => mock.Insert(0, _order3));
        }
Beispiel #2
0
        public void Insert_RequiredItemTypeNull()
        {
            _modificationCheckingDecoratorWithoutRequiredItemType.Insert(0, _order1);
            _modificationCheckingDecoratorWithoutRequiredItemType.Insert(0, _orderItem1);

            _wrappedDataMock.AssertWasCalled(mock => mock.Insert(0, _order1));
            _wrappedDataMock.AssertWasCalled(mock => mock.Insert(0, _orderItem1));
        }