public void Initialise() { _intervalService = new ControllableIntervalService(); _outputBuffer = new BucketOutputBlock(); _block = TimedCounterAggregatorBlockFactory.CreateBlock(_outputBuffer, String.Empty, _intervalService); }
public void Initialise() { _intervalService = new ControllableIntervalService(); _outputBuffer = new GraphiteLineOutputBlock(); _log = new Mock <ILog>(); _block = TimedSetAggregatorBlockFactory.CreateBlock(_outputBuffer, String.Empty, _intervalService, _log.Object); }
public void Initialise() { _intervalService = new ControllableIntervalService(); _outputBuffer = new BucketOutputBlock(); _startDateTime = new DateTime(2012, 04, 05, 17, 05, 10); _timeWindowService = new MockTimeWindowService(_startDateTime); _block = TimedCalendargramAggregatorBlockFactory.CreateBlock(_outputBuffer, String.Empty, _intervalService, _timeWindowService); }
public void Initialise() { _intervalService = new ControllableIntervalService(); _outputBuffer = new BucketOutputBlock(); _log = new Mock <ILog>(); _block = TimedGaugeAggregatorBlockFactory.CreateBlock(_outputBuffer, String.Empty, false, _intervalService, _log.Object); }
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); }
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>(); }
public TimedLatencyPercentileAggregatorBlockTests() { _intervalService = new ControllableIntervalService(); _outputBuffer = new BucketOutputBlock(); }
public void Initialise() { _intervalService = new ControllableIntervalService(); _outputBuffer = new GraphiteLineOutputBlock(); _log = new Mock <ILog>(); }
public void Initialise() { _intervalService = new ControllableIntervalService(); _outputBuffer = new BucketOutputBlock(); }