public void SetUp() { dataClientFactory = MockRepository.GenerateMock<IDataClientFactory>(); graphiteClientFactory = MockRepository.GenerateMock<IGraphiteClientFactory>(); stop = MockRepository.GenerateMock<IStop>(); log = MockRepository.GenerateMock<ILog>(); }
public Task(TaskParams taskParams, IDataClientFactory dataClientFactory, IGraphiteClientFactory graphiteClientFactory, GraphiteParams graphiteParams, ILog log) { this.taskParams = taskParams; this.dataClientFactory = dataClientFactory; this.graphiteClientFactory = graphiteClientFactory; this.graphiteParams = graphiteParams; this.log = log; }
public void SetUp() { this.dataClientFactory = MockRepository.GenerateMock<IDataClientFactory>(); this.sqlClient = MockRepository.GenerateMock<ISqlClient>(); this.graphiteClientFactory = MockRepository.GenerateMock<IGraphiteClientFactory>(); statsClient = MockRepository.GenerateMock<IStatsClient>(); log = MockRepository.GenerateMock<ILog>(); }
public ConfigMapper(string hostname, IStop stop, IDataClientFactory dataClientFactory, IGraphiteClientFactory graphiteClientFactory, ILog log) { this.hostname = hostname; this.stop = stop; this.dataClientFactory = dataClientFactory; this.graphiteClientFactory = graphiteClientFactory; ConfigMapper.log = log; }
public RunableRunTask(Job job, IDataClientFactory dataClientFactory, IGraphiteClientFactory graphiteClientFactory, ILog log, Client client) { this.job = job; this.dataClientFactory = dataClientFactory; this.graphiteClientFactory = graphiteClientFactory; this.log = log; this.client = client; }
public void SetUp() { log = MockRepository.GenerateMock<ILog>(); clientFactory = new GraphiteClientFactory(log); }