Example #1
0
        public void DeleteMemberFromList_Requires_UserID_Or_ScreenName()
        {
            InitializeTwitterContext();

            var ex = Assert.Throws <ArgumentException>(() => ctx.DeleteMemberFromList(null, null, null, null, null, null));

            Assert.Equal("UserIdOrScreenName", ex.ParamName);
        }
Example #2
0
        /// <summary>
        /// Shows how to remove a member from a list
        /// </summary>
        /// <param name="twitterCtx">TwitterContext</param>
        private static void DeleteMemberFromListDemo(TwitterContext twitterCtx)
        {
            List list = twitterCtx.DeleteMemberFromList("LinqToTweeter", "linq", "15411837");

            Console.WriteLine("List Name: {0}, Description: {1}",
                              list.Name, list.Description);
        }
Example #3
0
        /// <summary>
        /// Shows how to remove a member from a list
        /// </summary>
        /// <param name="twitterCtx">TwitterContext</param>
        private static void DeleteMemberFromListDemo(TwitterContext twitterCtx)
        {
            List list = twitterCtx.DeleteMemberFromList(null, "Linq2Tweeter", null, "test", null, "Linq2Tweeter");

            Console.WriteLine("List Name: {0}, Description: {1}",
                              list.Name, list.Description);
        }