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); }
private void StartupMetrics() { AttributeProvider.AddDynamicAttributeProvider(Metrics); _metrics.SendStartupEvent(); }