public async Task GetOrderList() { var res = await _client.GetRequestAsync <OrderListResponse>(new OrderRequest(ApiUrl, apikey, apivalue) { created_at_min = DateTime.Now.AddHours(-6), created_at_max = DateTime.Now }); Assert.True(res.orders.Count > 0); }
public async Task <List <OrderAsyncModel> > GetOrderList(ShopResponseDto shop, DateTime startTime, DateTime endTime) { var res = await _client.GetRequestAsync <OrderListResponse>(new OrderRequest(shop.ApiUrl, shop.ApiKey, shop.ApiKeyValue) { created_at_min = startTime, created_at_max = endTime }); return(res.orders.MapTo <List <OrderAsyncModel> >()); }