btcpay-plugin/BTCPayServer.Plugins.UnitTests/Lethean/ViewModels/LetheanPaymentViewModelTests.cs
Claude a3869db496
rebrand(lethean): update branding, ports, and config for Lethean blockchain
- Coin: Zano → Lethean, ticker: ZAN/ZANO → LTHN
- Ports: 11211 → 36941 (mainnet RPC), 46941 (testnet RPC)
- Wallet: 11212 → 36944/46944
- Address prefix: iTHN
- URLs: zano.org → lethean.io
- Explorer links: explorer.lthn.io

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 22:24:13 +01:00

45 lines
No EOL
1.7 KiB
C#

using BTCPayServer.Payments;
using BTCPayServer.Plugins.Lethean.ViewModels;
using Xunit;
namespace BTCPayServer.Plugins.UnitTests.Lethean.ViewModels
{
public class LetheanPaymentViewModelTests
{
[Trait("Category", "Unit")]
[Fact]
public void LetheanPaymentViewModel_SetGetProperties_ReturnsCorrectValues()
{
var viewModel = new LetheanPaymentViewModel();
var paymentMethodId = new PaymentMethodId("LTHN");
var confirmations = "3";
var depositAddress = "letheanaddress";
var amount = "100.5";
var transactionId = "tx123";
var receivedTime = DateTimeOffset.UtcNow;
var transactionLink = "https://explorer.lethean.com/tx/tx123";
var currency = "LTHN";
viewModel.PaymentMethodId = paymentMethodId;
viewModel.Confirmations = confirmations;
viewModel.DepositAddress = depositAddress;
viewModel.Amount = amount;
viewModel.TransactionId = transactionId;
viewModel.ReceivedTime = receivedTime;
viewModel.TransactionLink = transactionLink;
viewModel.Currency = currency;
Assert.Equal(paymentMethodId, viewModel.PaymentMethodId);
Assert.Equal(confirmations, viewModel.Confirmations);
Assert.Equal(depositAddress, viewModel.DepositAddress);
Assert.Equal(amount, viewModel.Amount);
Assert.Equal(transactionId, viewModel.TransactionId);
Assert.Equal(receivedTime, viewModel.ReceivedTime);
Assert.Equal(transactionLink, viewModel.TransactionLink);
Assert.Equal(currency, viewModel.Currency);
}
}
}