public async Task DestroyAllFromListAsync_Invokes_Executor_Execute() { InitializeTwitterContext(); var userIDs = new List <ulong> { 456 }; var parameters = new Dictionary <string, string> { { "list_id", "123" }, { "slug", "test" }, { "user_id", "456" }, { "owner_id", "789" }, { "owner_screen_name", "JoeMayo" } }; await ctx.DeleteMemberRangeFromListAsync(123, "test", userIDs, 789, "JoeMayo"); execMock.Verify(exec => exec.PostFormUrlEncodedToTwitterAsync <List>( HttpMethod.Post.ToString(), "https://api.twitter.com/1.1/lists/members/destroy_all.json", parameters, It.IsAny <CancellationToken>()), Times.Once()); }
static async Task DeleteMemberRangeFromListAsync(TwitterContext twitterCtx) { string ownerScreenName = "Linq2Twitr"; var screenNames = new List <string> { "JoeMayo", "mp2kmag" }; List?list = await twitterCtx.DeleteMemberRangeFromListAsync( 0, "linq-to-twitter", screenNames, 0, ownerScreenName); if (list != null) { Console.WriteLine("List Name: {0}, Description: {1}", list.Name, list.Description); } }