コード例 #1
0
        public async Task Call_DocumentProcessor_for_each_observed_document()
        {
            var sut = new ConcurrentPipelineObserver(_documentProcessor,
                                                     _onPipelineCompleted,
                                                     _onPipelineError,
                                                     1);

            _source.Subscribe(sut);

            await _tcs.Task;
            await _documentProcessor.Received(_maxConcurrency).RunAsync(_testDocument);
        }