public async Task GetOrdersTest() { // Arrange var filter = new OrderListFilter(); _stripe.Get( Arg.Is <StripeRequest <OrderListFilter, Pagination <Order> > >( a => a.UrlPath == "orders" && a.Model == filter), _cancellationToken) .Returns(Task.FromResult(new StripeResponse <Pagination <Order> >())); // Act var response = await _client.GetOrders(filter, _cancellationToken); // Assert response.Should().NotBeNull(); }
public async Task <IViewComponentResult> InvokeAsync() { var orders = await _orderClient.GetOrders(); return(View(orders)); }