public void Add()
        {
            Assert.That(_collection.Count, Is.EqualTo(0));

            _collection.Add(_extension1);

            Assert.That(_collection.Count, Is.EqualTo(1));
        }
        public override void SetUp()
        {
            base.SetUp();

            _mockRepository = new MockRepository();
            _collection     = new ClientTransactionExtensionCollection("key");
            _extension1     = _mockRepository.StrictMock <IClientTransactionExtension> ();
            _extension2     = _mockRepository.StrictMock <IClientTransactionExtension> ();

            _extension1.Stub(stub => stub.Key).Return("Name1");
            _extension2.Stub(stub => stub.Key).Return("Name2");
            _mockRepository.ReplayAll();

            _collectionWithExtensions = new ClientTransactionExtensionCollection("key");
            _collectionWithExtensions.Add(_extension1);
            _collectionWithExtensions.Add(_extension2);

            // _mockRepository.BackToRecordAll();

            _order = Order.NewObject();
            _propertyDefinition = GetPropertyDefinition(typeof(Order), "OrderNumber");
        }