public void SetUp()
 {
     encryption = new Encryption();
     log = MockRepository.GenerateMock<ILog>();
     assemblyResolver = MockRepository.GenerateMock<IAssemblyResolver>();
     this.dataClientFactory = new DataClientFactory(log, assemblyResolver, encryption);
 }
 public void SetUp()
 {
     dataClientFactory = MockRepository.GenerateMock<IDataClientFactory>();
     graphiteClientFactory = MockRepository.GenerateMock<IGraphiteClientFactory>();
     stop = MockRepository.GenerateMock<IStop>();
     log = MockRepository.GenerateMock<ILog>();
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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>();
 }
Ejemplo n.º 5
0
 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>();
     this.dataClientFactory = new DataClientFactory(log);
 }