Пример #1
0
        static async Task DeleteListAsync(TwitterContext twitterCtx)
        {
            ulong listID = 0;

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

            if (list != null)
            {
                Console.WriteLine("List Name: {0}, Description: {1}",
                                  list.Name, list.Description);
            }
        }
Пример #2
0
        public async Task DeleteListAsync_Requires_ListID_Or_Slug()
        {
            InitializeTwitterContext();

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

            Assert.AreEqual("ListIdOrSlug", ex.ParamName);
        }