public static Task <IList <Ticket> > GetAllTicketsAsync(this IRedmineClient apiClient, long[] ids = null, long[] statusIds = null, long[] trackerIds = null, object[] assignedToIds = null, string subject = null, DateTime?updatedOnFrom = null, DateTime?updatedOnTo = null, string[] include = null, int offset = 0, int count = int.MaxValue) { return(RedminePaginationHelper.GetAllAsync <Ticket>( async(o, l) => await apiClient.GetTicketsAsync(ids, statusIds, trackerIds, assignedToIds, subject, updatedOnFrom, updatedOnTo, include, o, l), offset, count)); }
public async Task GetAllTickets_CallWithSomeParameters_ReturnsSomeTickets() { var tickets = await _client.GetTicketsAsync(new long[] { 6, 8 }, include : new[] { TicketInclude.Relations, TicketInclude.Children }); Assert.True(tickets.Data.Length > 0); }