mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Refactor how we get storeids list in invoice filter (#3483)
This commit is contained in:
@@ -925,7 +925,7 @@ namespace BTCPayServer.Tests
|
||||
private void AssertSearchInvoice(TestAccount acc, bool expected, string invoiceId, string filter, string storeId = null)
|
||||
{
|
||||
var result =
|
||||
(InvoicesModel)((ViewResult)acc.GetController<UIInvoiceController>()
|
||||
(InvoicesModel)((ViewResult)acc.GetController<UIInvoiceController>(storeId is not null)
|
||||
.ListInvoices(new InvoicesModel { SearchTerm = filter, StoreId = storeId }).Result).Model;
|
||||
Assert.Equal(expected, result.Invoices.Any(i => i.InvoiceId == invoiceId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user