public void Initialise()
 {
   _intervalService = new ControllableIntervalService();
   _outputBuffer = new BucketOutputBlock();
   _log = new Mock<ILog>();
   _block = TimedCounterAggregatorBlockFactory.CreateBlock(_outputBuffer,
     String.Empty,
     _intervalService,
     _log.Object);
 }
Esempio n. 2
0
 public void Setup()
 {
   SuperCheapIOC.Reset();
   _statsd = new Statsd();
   _listener = new InAppListener();
   _backend = new InAppBackend();
   _intervalService = new ControllableIntervalService();
   _outputBlock = new OutputBufferBlock<GraphiteLine>();
   _client = new StatsdClient.Statsd("", 0, outputChannel : new InAppListenerOutputChannel(_listener));
   _statsd.AddListener(_listener);
   _statsd.AddBackend(_backend, _systemMetrics, "testing");
   _systemMetrics = new Mock<ISystemMetricsService>().Object;
 }
 public void Initialise()
 {
   _intervalService = new ControllableIntervalService();
   _outputBuffer = new BucketOutputBlock();
   _log = new Mock<ILog>();
 }