public void BacktraceMetricsDefaultEvent_ShouldSendDefaultEventOnTheApplicationStartup_DataWasSendToBacktrace()
        {
            var requestHandler   = new BacktraceHttpClientMock();
            var backtraceMetrics = new BacktraceMetrics(_attributeProvider, 10, _defaultUniqueEventsSubmissionUrl, _defaultSummedEventsSubmissionUrl);

            backtraceMetrics.OverrideHttpClient(requestHandler);

            backtraceMetrics.SendStartupEvent();

            Assert.AreEqual(2, requestHandler.NumberOfRequests);
        }
Exemplo n.º 2
0
 private void StartupMetrics()
 {
     AttributeProvider.AddDynamicAttributeProvider(Metrics);
     _metrics.SendStartupEvent();
 }