public void UpdateUserAttributes_Then_RemoveUserAttributes_Returns_ExpectedAttributes() { // setup latch = new CountdownEvent(1); // test var attributes = new Dictionary <string, Java.Lang.Object>(); attributes.Add("key1", "value1"); attributes.Add("key2", "value2"); attributes.Add("key3", "value3"); attributes.Add("key4", "value4"); ACPUserProfile.UpdateUserAttributes(attributes); var keysToRemove = new List <string>(); keysToRemove.Add("key1"); keysToRemove.Add("key3"); ACPUserProfile.RemoveUserAttributes(keysToRemove); var keysToRetrieve = new List <string>(); keysToRetrieve.Add("key1"); keysToRetrieve.Add("key2"); keysToRetrieve.Add("key3"); keysToRetrieve.Add("key4"); ACPUserProfile.GetUserAttributes(keysToRetrieve, new AdobeCallback()); latch.Wait(1000); // verify Assert.That(callbackString.Contains("[ key2 : value2 ]")); Assert.That(callbackString.Contains("[ key4 : value4 ]")); }
void RemoveUserAttributes() { Debug.Log("Calling RemoveUserAttributes"); var attributeKeys = new List <string>(); attributeKeys.Add("attrNameTest"); attributeKeys.Add("mapKey"); ACPUserProfile.RemoveUserAttributes(attributeKeys); }
public TaskCompletionSource <string> RemoveUserAttributes() { stringOutput = new TaskCompletionSource <string>(); string[] attributes = new string[] { "vehicle", "color" }; ACPUserProfile.RemoveUserAttributes(attributes); stringOutput.SetResult("completed"); GetUserAttributes(); return(stringOutput); }
public TaskCompletionSource <string> RemoveUserAttributes() { stringOutput = new TaskCompletionSource <string>(); var attributes = new List <string>(); attributes.Add("vehicle"); attributes.Add("color"); ACPUserProfile.RemoveUserAttributes(attributes); stringOutput.SetResult("completed"); GetUserAttributes(); return(stringOutput); }
public void UpdateUserAttributes_Then_RemoveUserAttributes_Returns_ExpectedAttributes() { // setup latch = new CountdownEvent(1); // test var attributes = new NSMutableDictionary <NSString, NSString> { ["key1"] = new NSString("value1"), ["key2"] = new NSString("value2"), ["key3"] = new NSString("value3"), ["key4"] = new NSString("value4") }; ACPUserProfile.UpdateUserAttributes(attributes); string[] keysToRemove = new string[] { "key1", "key3" }; ACPUserProfile.RemoveUserAttributes(keysToRemove); var keysToRetrieve = new string[] { "key1", "key2", "key3", "key4" }; ACPUserProfile.GetUserAttributes(keysToRetrieve, callback); latch.Wait(1000); // verify Assert.That(callbackString.Contains("[ key2 : value2 ]")); Assert.That(callbackString.Contains("[ key4 : value4 ]")); }