Exemplo n.º 1
0
        public GetBrowserTimingHeader(RemoteServiceFixtures.BasicMvcApplicationTestFixture fixture, ITestOutputHelper output)
        {
            _fixture            = fixture;
            _fixture.TestLogger = output;
            _fixture.Actions
            (
                setupConfiguration: () =>
            {
                var configPath = fixture.DestinationNewRelicConfigFilePath;

                var configModifier = new NewRelicConfigModifier(configPath);
                configModifier.AutoInstrumentBrowserMonitoring(false);
                configModifier.BrowserMonitoringEnableAttributes(true);
            },
                exerciseApplication: () =>
            {
                _browserTimingHeader = _fixture.GetBrowserTimingHeader();
            }
            );
            _fixture.Initialize();
        }