public TaskCompletionSource <string> UpdateUserAttribute() { stringOutput = new TaskCompletionSource <string>(); ACPUserProfile.UpdateUserAttribute("firstName", "john"); stringOutput.SetResult("completed"); GetUserAttributes(); return(stringOutput); }
public void UpdateUserAttribute_Then_GetUserAttributes_Returns_ExpectedAttributes() { // setup latch = new CountdownEvent(1); // test ACPUserProfile.UpdateUserAttribute("key", "value"); string[] attributes = new string[] { "key" }; ACPUserProfile.GetUserAttributes(attributes, callback); latch.Wait(1000); // verify Assert.That(callbackString, Is.EqualTo("[ key : value ]")); }
public void UpdateUserAttribute_Then_GetUserAttributes_Returns_ExpectedAttributes() { // setup latch = new CountdownEvent(1); // test ACPUserProfile.UpdateUserAttribute("key", "value"); var attributes = new List <string>(); attributes.Add("key"); ACPUserProfile.GetUserAttributes(attributes, new AdobeCallback()); latch.Wait(1000); // verify Assert.That(callbackString, Is.EqualTo("[ key : value ]")); }
void UpdateUserAttribute() { Debug.Log("Calling UpdateUserAttribute"); ACPUserProfile.UpdateUserAttribute("attrNameTest", "attrValueTest"); }