From 40d95acfb9656cbf76c77bae8a9ad3693999341e Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Fri, 23 Oct 2020 10:41:12 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Dennis Reimann --- BTCPayServer.Tests/GreenfieldAPITests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BTCPayServer.Tests/GreenfieldAPITests.cs b/BTCPayServer.Tests/GreenfieldAPITests.cs index e56dc74b2..0efd55c6a 100644 --- a/BTCPayServer.Tests/GreenfieldAPITests.cs +++ b/BTCPayServer.Tests/GreenfieldAPITests.cs @@ -852,6 +852,10 @@ namespace BTCPayServer.Tests var invoice = await viewOnly.GetInvoice(user.StoreId, newInvoice.Id); Assert.Equal(newInvoice.Metadata, invoice.Metadata); var paymentMethods = await viewOnly.GetInvoicePaymentMethods(user.StoreId, newInvoice.Id); + Assert.Equal(1, paymentMethods.Length); + var paymentMethod = paymentMethods.First(); + Assert.Equal("BTC", paymentMethod.PaymentMethod); + Assert.Equal(0, paymentMethod.Payments.Count); //update