Пример #1
0
        public async Task DeleteMemberFromListAsync_Requires_UserID_Or_ScreenName()
        {
            InitializeTwitterContext();

            var ex = await L2TAssert.Throws <ArgumentException>(
                async() => await ctx.DeleteMemberFromListAsync(0, null, 0, null, 0, null));

            Assert.AreEqual("UserIdOrScreenName", ex.ParamName);
        }
Пример #2
0
        static async Task DeleteMemberFromListAsync(TwitterContext twitterCtx)
        {
            string ownerScreenName = "Linq2Twitr";

            List?list =
                await twitterCtx.DeleteMemberFromListAsync(
                    0, "Linq2Twitr", 0, "linq-to-twitter", 0, ownerScreenName);

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