public void Setup() { TestCommon.ResetInternalStaticCaches(); _testReceiver = new _TestReceiver(); var serviceBundle = TestCommon.CreateServiceBundleWithCustomHttpManager(null, clientId: ClientId); _telemetryManager = new TelemetryManager(serviceBundle.Config, serviceBundle.PlatformProxy, _testReceiver.HandleTelemetryEvents); _trackingEvent = new _TestEvent("tracking event", CorrelationId); }
public void Setup() { TestCommon.ResetInternalStaticCaches(); _testReceiver = new _TestReceiver(); var serviceBundle = TestCommon.CreateServiceBundleWithCustomHttpManager( null, clientId: ClientId, telemetryCallback: _testReceiver.HandleTelemetryEvents); _requestContext = new RequestContext(serviceBundle, Guid.NewGuid()); _trackingEvent = new _TestEvent("tracking event", CorrelationId); }
add => _TestEvent = (TestEventHandler?)Delegate.Combine(_TestEvent, value);
remove => _TestEvent = (TestEventHandler?)Delegate.Remove(_TestEvent, value);
public void Setup() { _testReceiver = new _TestReceiver(); _telemetryManager = new TelemetryManager(_testReceiver); _trackingEvent = new _TestEvent("tracking event"); }