Example #1
0
        private List <info_field> getSampleInfo()
        {
            var callback = WebConfigurationManager.AppSettings["Callback"];
            var options  = new List <info_item>();

            options.Add(new info_item {
                label = "Happy", image = callback + "images/smile0.jpg", sublabel = "", description = "The original and still undefeated.", link = "http://apps.facebook.com/" + Master.suffix + "/smile.aspx?smile=1"
            });
            options.Add(new info_item {
                label = "Indifferent", image = callback + "images/smile1.jpg", sublabel = "", description = "meh....", link = "http://apps.facebook.com/" + Master.suffix + "/smile.aspx?smile=2"
            });
            options.Add(new info_item {
                label = "Sad", image = callback + "images/smile2.jpg", sublabel = "", description = "Oh my god! you killed my dog!", link = "http://apps.facebook.com/" + Master.suffix + "/smile.aspx?smile=3"
            });
            options.Add(new info_item {
                label = "Cool", image = callback + "images/smile3.jpg", sublabel = "", description = "Yeah. whatever", link = "http://apps.facebook.com/" + Master.suffix + "/smile.aspx?smile=4"
            });

            var field = new info_field();

            field.field           = "Good Smilies";
            field.items           = new info_fieldItems();
            field.items.info_item = options;

            return(new List <info_field> {
                field
            });
        }
Example #2
0
        public void setInfoTest()
        {
            var item = new info_item();

            item.label = "Unit test info item";
            item.link  = "www.claritycon.com";

            var field = new info_field();

            field.items = new info_fieldItems();
            field.items.info_item.Add(item);
            field.field = "Unit test field";
            _api.Profile.SetInfoAsync("Unit test title", 5, new List <info_field>()
            {
                field
            }, Constants.FBSamples_UserId, SetInfoCompleted, null);
        }
Example #3
0
        public void setInfoTest()
        {
            var item = new info_item();

            item.label = "Unit test info item";
            item.link  = "www.claritycon.com";

            var field = new info_field();

            field.items = new info_fieldItems();
            field.items.info_item.Add(item);
            field.field = "Unit test field";
            var response = _api.Profile.SetInfo("Unit test title", 5, new List <info_field>()
            {
                field
            }, Constants.FBSamples_UserId);

            Assert.IsTrue(response);
        }