Beispiel #1
0
 public void Init()
 {
     logger = MockRepository.GenerateStub <ILog>();
     cancellationTokenSource  = new CancellationTokenSource();
     spanProcessorTaskFactory = new SpanProcessorTaskFactory(logger, cancellationTokenSource);
     actionCalled             = false;
 }
 public void Init()
 {
     fixture = new Fixture();
     spanProcessorTaskFactory = new SpanProcessorTaskFactory();
     cancellationTokenSource  = new CancellationTokenSource();
     spanProcessorTaskFactory.cancellationTokenSource = cancellationTokenSource;
     actionCalled = false;
 }
 public void Init()
 {
     fixture = new Fixture();
     spanProcessorTaskFactory = new SpanProcessorTaskFactory();
     cancellationTokenSource = new CancellationTokenSource();
     spanProcessorTaskFactory.cancellationTokenSource = cancellationTokenSource;
     actionCalled = false;
 }
        public void Init()
        {
            fixture = new Fixture();

            queue = new BlockingCollection<Span>();
            clientProvider = MockRepository.GenerateStub<IClientProvider>();
            testMaxBatchSize = 10;
            spanProcessor = new SpanProcessor(queue, clientProvider, testMaxBatchSize);
            taskFactory = MockRepository.GenerateStub<SpanProcessorTaskFactory>();
            spanProcessor.spanProcessorTaskFactory = taskFactory;
        }
 public void Init()
 {
     fixture          = new Fixture();
     logger           = MockRepository.GenerateStub <ILog>();
     queue            = new BlockingCollection <Span>();
     testMaxBatchSize = 10;
     spanProcessor    = MockRepository.GenerateStub <SpanProcessor>(new Uri("http://localhost"), queue, testMaxBatchSize);
     spanProcessor.Stub(x => x.SendSpansToZipkin(Arg <string> .Is.Anything)).WhenCalled(s => { });
     taskFactory = MockRepository.GenerateStub <SpanProcessorTaskFactory>(logger, null);
     spanProcessor.spanProcessorTaskFactory = taskFactory;
 }
Beispiel #6
0
        public void Init()
        {
            fixture = new Fixture();

            queue            = new BlockingCollection <Span>();
            clientProvider   = MockRepository.GenerateStub <IClientProvider>();
            testMaxBatchSize = 10;
            spanProcessor    = new SpanProcessor(queue, clientProvider, testMaxBatchSize);
            taskFactory      = MockRepository.GenerateStub <SpanProcessorTaskFactory>();
            spanProcessor.spanProcessorTaskFactory = taskFactory;
        }