mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
25 lines
821 B
C#
25 lines
821 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using BTCPayServer.Payments.Lightning.Charge;
|
|
using BTCPayServer.Payments.Lightning.CLightning;
|
|
using NBitcoin;
|
|
|
|
namespace BTCPayServer.Tests
|
|
{
|
|
public class ChargeTester
|
|
{
|
|
private ServerTester _Parent;
|
|
|
|
public ChargeTester(ServerTester serverTester, string environmentName, string defaultValue, string defaultHost, Network network)
|
|
{
|
|
this._Parent = serverTester;
|
|
var url = serverTester.GetEnvironment(environmentName, defaultValue);
|
|
Client = new ChargeClient(new Uri(url), network);
|
|
P2PHost = _Parent.GetEnvironment(environmentName + "_HOST", defaultHost);
|
|
}
|
|
public ChargeClient Client { get; set; }
|
|
public string P2PHost { get; }
|
|
}
|
|
}
|