AdjustTest.Pcl.TestAttributionHandler.TestCheckAttribution C# (CSharp) Method

TestCheckAttribution() public method

public TestCheckAttribution ( ) : void
return void
        public void TestCheckAttribution()
        {
            AttributionHandler attributionHandler = new AttributionHandler(
                activityHandler: MockActivityHandler,
                attributionPackage: AttributionPackage,
                startPaused: false,
                hasDelegate: true);

            var response = "Response: {{ \"attribution\" : " +
                    "{{\"tracker_token\" : \"ttValue\" , " +
                    "\"tracker_name\"  : \"tnValue\" , " +
                    "\"network\"       : \"nValue\" , " +
                    "\"campaign\"      : \"cpValue\" , " +
                    "\"adgroup\"       : \"aValue\" , " +
                    "\"creative\"      : \"ctValue\" , " +
                    "\"click_label\"   : \"clValue\" }} }}";

            CallCheckAttributionWithGet(attributionHandler, ResponseType.ATTRIBUTION, response);

            // check attribution was called without ask_in
            Assert.Test("ActivityHandler UpdateAttribution, tt:ttValue tn:tnValue net:nValue cam:cpValue adg:aValue cre:ctValue cl:clValue");

            // updated set askingAttribution to false
            Assert.Test("ActivityHandler SetAskingAttribution, False");

            // it did not update to true
            Assert.NotTest("ActivityHandler SetAskingAttribution, True");

            // and waiting for query
            Assert.NotDebug("Waiting to query attribution");
        }