Exemple #1
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);
        }
Exemple #2
0
        public void setInfoOptionsTest()
        {
            var item1 = new info_item();

            item1.link  = "www.claritycon.com";
            item1.label = "SetInfoOptions test 1";

            var item2 = new info_item();

            item2.link  = "blogs.claritycon.com";
            item2.label = "SetInfoOptions test 2";

            _api.Profile.SetInfoOptionsAsync("SetInfoOptions Field", new List <info_item>()
            {
                item1, item2
            }, SetInfoOptionsCompleted, null);
        }
Exemple #3
0
        public void setInfoOptionsTest()
        {
            var item1 = new info_item();

            item1.link  = "www.claritycon.com";
            item1.label = "SetInfoOptions test 1";

            var item2 = new info_item();

            item2.link  = "blogs.claritycon.com";
            item2.label = "SetInfoOptions test 2";

            var response = _api.Profile.SetInfoOptions("SetInfoOptions Field", new List <info_item>()
            {
                item1, item2
            });

            Assert.IsTrue(response);
        }
Exemple #4
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);
        }