public async Task GetFilteredCommentsPerPaged_ReturnPagedList(GetCommentsQuery query) { // tested..works fine await AuthenticateMeBabyAsync(); var queryString = TextMaker.QueryStringCreator <GetCommentsQuery>(query, "/api/comment/filter?"); var response = await Client.GetAsync(queryString); var content = await response.Content.ReadAsAsync <Response <List <CommentResource> > >(); content.Status.Should().Be(StatusCodeEnum.OK); }
public async Task CurrentUserOrders_ReturnPagedList(GetCurrentUserOrdersQuery query) { //tested..works fine await AuthenticateMeBabyAsync(); var queryString = TextMaker.QueryStringCreator <GetCurrentUserOrdersQuery>(query, "/api/order/current?"); var response = await Client.GetAsync(queryString); var content = await response.Content.ReadAsAsync <Response <List <OrderResource> > >(); content.Item.Count().Should().NotBe(0); }