public void Update_TypeWithHideFromSearchProperty_DeletesFromIndex() { var hiddenType = new TypeWithHideFromSearchProperty { ContentLink = new ContentReference(123) }; _indexer.Update(hiddenType); _coreIndexerMock.Verify(m => m.Delete(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <Type>(), null), Times.Once); }
public void Update_TypeWithHideFromSearchProperty_IsNotIndexed() { var hiddenType = new TypeWithHideFromSearchProperty(); IndexingStatus result = _indexer.Update(hiddenType); _coreIndexerMock.Verify( m => m.Update(It.IsAny <string>(), It.IsAny <object>(), It.IsAny <string>(), null), Times.Never()); Assert.Equal(IndexingStatus.HideFromSearchProperty, result); }