Beispiel #1
0
        public async Task ThenItShouldUploadBatchWithSingleDocument(LearningProvider learningProvider)
        {
            await _manager.SyncAsync(learningProvider, SourceSystemNames.GetInformationAboutSchools,
                                     _cancellationToken);

            _searchIndexMock.Verify(i => i.UploadBatchAsync(
                                        It.Is <LearningProviderSearchDocument[]>(a => a.Length == 1),
                                        _cancellationToken),
                                    Times.Once);
        }