From 8a51e213105b720c37360738e66590823a5c21a0 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 14 Nov 2024 14:32:53 +0900 Subject: [PATCH] Add test --- BTCPayServer.Tests/GreenfieldAPITests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BTCPayServer.Tests/GreenfieldAPITests.cs b/BTCPayServer.Tests/GreenfieldAPITests.cs index 399243011..dd059b95e 100644 --- a/BTCPayServer.Tests/GreenfieldAPITests.cs +++ b/BTCPayServer.Tests/GreenfieldAPITests.cs @@ -1414,7 +1414,13 @@ namespace BTCPayServer.Tests Assert.Equal(0, card.Version); var card1keys = new[] { card.K0, card.K1, card.K2, card.K3, card.K4 }; Assert.DoesNotContain(null, card1keys); + var card2 = await client.RegisterBoltcard(test4.Id, new RegisterBoltcardRequest() + { + UID = uid + }); + Assert.Equal(0, card2.Version); + card2 = await client.RegisterBoltcard(test4.Id, new RegisterBoltcardRequest() { UID = uid, OnExisting = OnExistingBehavior.UpdateVersion