Esempio n. 1
0
        public void Insert_Duplicate()
        {
            StubInnerData(_order1);

            CheckThrows <ArgumentException> (
                () => _modificationCheckingDecorator.Insert(0, _order1),
                "The collection already contains an object with ID 'Order|5682f032-2f0b-494b-a31c-c97f02b89c36|System.Guid'.\r\nParameter name: domainObject");

            _wrappedDataMock.AssertWasNotCalled(mock => mock.Insert(Arg <int> .Is.Anything, Arg <DomainObject> .Is.Anything));
        }