Esempio n. 1
0
 public void Setup()
 {
     _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 = Substitute.For <ISystemMetricsService>();
 }
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);
 }
Esempio n. 3
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;
 }