public async Task GetDetailAsync_ReturnsRecurringInvoice() { // Act var data = (await RecurringInvoiceClient.Detail(_recurringInvoiceId).GetAsync()).AssertResult(); // Assert AssertGetModel(data); }
public async Task GetDetailAsync_Expand_ReturnsRecurringInvoice() { // Act var data = (await RecurringInvoiceClient.Detail(_recurringInvoiceId) .Include(i => i.InvoiceTemplate.ConstantSymbol) .Include(i => i.InvoiceTemplate.Currency) .Include(i => i.InvoiceTemplate.Partner) .Include(i => i.InvoiceTemplate.PaymentOption) .Include(i => i.InvoiceTemplate.VatReverseChargeCode) .Include(i => i.InvoiceTemplate.Items.PriceListItem) .GetAsync()).AssertResult(); // Assert AssertGetModel(data); AssertExpand(data); }