예제 #1
0
        public void UpdateUserAttributes_Then_RemoveUserAttribute_Returns_ExpectedAttributes()
        {
            // setup
            latch = new CountdownEvent(1);
            // test
            var attributes = new NSMutableDictionary <NSString, NSString>
            {
                ["key1"] = new NSString("value1"),
                ["key2"] = new NSString("value2")
            };

            ACPUserProfile.UpdateUserAttributes(attributes);
            ACPUserProfile.RemoveUserAttribute("key1");
            string[] attributeKeys = new string[] { "key1", "key2" };
            ACPUserProfile.GetUserAttributes(attributeKeys, callback);
            latch.Wait(1000);
            // verify
            Assert.That(callbackString, Is.EqualTo("[ key2 : value2 ]"));
        }
        public void UpdateUserAttributes_Then_RemoveUserAttribute_Returns_ExpectedAttributes()
        {
            // setup
            latch = new CountdownEvent(1);
            // test
            var attributes = new Dictionary <string, Java.Lang.Object>();

            attributes.Add("key1", "value1");
            attributes.Add("key2", "value2");
            ACPUserProfile.UpdateUserAttributes(attributes);
            ACPUserProfile.RemoveUserAttribute("key1");
            var attributeKeys = new List <string>();

            attributeKeys.Add("key1");
            attributeKeys.Add("key2");
            ACPUserProfile.GetUserAttributes(attributeKeys, new AdobeCallback());
            latch.Wait(1000);
            // verify
            Assert.That(callbackString, Is.EqualTo("[ key2 : value2 ]"));
        }
예제 #3
0
 void RemoveUserAttribute()
 {
     Debug.Log("Calling RemoveUserAttribute");
     ACPUserProfile.RemoveUserAttribute("attrNameTest");
 }