CmisSync.Lib.SelectiveIgnore.IgnoredEntitiesStorage.Add C# (CSharp) Method

Add() public method

Add the specified ignore to the given collection
public Add ( IIgnoredEntity ignore ) : void
ignore IIgnoredEntity Ignored entity.
return void
        public void Add(IIgnoredEntity ignore) {
            this.collection.Add(ignore);
        }

Usage Example

        public void StorageWrapsCollectionsAdd() {
            var collection = new Mock<IIgnoredEntitiesCollection>();
            var storage = new Mock<IMetaDataStorage>(MockBehavior.Strict);
            var entry = Mock.Of<IIgnoredEntity>();
            var underTest = new IgnoredEntitiesStorage(collection.Object, storage.Object);

            underTest.Add(entry);

            collection.Verify(c => c.Add(entry), Times.Once);
        }