public TestCommandsBase()
        {
//            var mockConfig = new NewRelicConfiguration()
//            {
//                AgentId = "AgentID111",
//                ApiKey = "ApiKey111"
//            };

            var config = new NewRelicConfiguration()
            {
                AppId  = "2430784",
                ApiKey = "6629fcbc729fffcde32ed9b61619ab8b7fdaaf5a9b1e330"
            };

//            this.mockCommandBuilder = new MockApiCommandBuilder(mockConfig);
            this.testCommandBuilder = new ApiCommandBuilder(config);

            this.accessor = new NewRelicAccessor(config, this.testCommandBuilder);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates an HttpClient to access New Relic rest API in strongly typed manner
 /// </summary>
 /// <param name="configuration"></param>
 public NewRelicAccessor(NewRelicConfiguration configuration, IApiCommandBuilder apiCommandBuilder)
 {
     newRelicConnector      = new NewRelicConnector(configuration);
     this.apiCommandBuilder = apiCommandBuilder;
 }