This commit is contained in:
nicolas.dorier 2024-11-14 14:32:53 +09:00
parent 31b73f0d82
commit 8a51e21310
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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