private void StartGetAttributionTest(AttributionHandler attributionHandler, ResponseType responseType) { MockHttpMessageHandler.ResponseType = responseType; attributionHandler.AskAttribution(); DeviceUtil.Sleep(1000); RequestTest(MockHttpMessageHandler.HttpRequestMessage); Assert.Test("HttpMessageHandler SendAsync"); }
public void TestWithoutListener() { AttributionHandler attributionHandler = new AttributionHandler( activityHandler: MockActivityHandler, attributionPackage: AttributionPackage, startPaused: false, hasDelegate: false); MockHttpMessageHandler.ResponseType = ResponseType.MESSAGE; attributionHandler.AskAttribution(); DeviceUtil.Sleep(1000); // check that the activity handler is not paused Assert.NotDebug("Attribution handler is paused"); // but it did not call the http client Assert.Null(MockHttpMessageHandler.HttpRequestMessage); Assert.NotTest("HttpMessageHandler SendAsync"); }