public void BulkUpdate_CallsCoreBulk() { var batch = new[] { Factory.GetTestPage(), Factory.GetTestPage(), Factory.GetTestPage() }; _fixture.ServiceLocationMock.SettingsMock .Setup(m => m.GetDefaultIndexName(It.IsAny <string>())) .Returns("test"); _fixture.ServiceLocationMock.CoreIndexerMock.Invocations.Clear(); var result = _indexer.BulkUpdate(batch, null, null); _fixture.ServiceLocationMock.CoreIndexerMock .Verify(m => m.Bulk(It.IsAny <IEnumerable <BulkOperation> >(), It.IsAny <Action <string> >()), Times.Once); }