mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
2f23bad3bc
* Support the new LN lib * fix test * do not cache factories * try without useless userinfo in lnd * Remove monero wallet files * support simpler DI too --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
23 lines
746 B
C#
23 lines
746 B
C#
using BTCPayServer.Lightning;
|
|
using BTCPayServer.Lightning.Charge;
|
|
using NBitcoin;
|
|
|
|
namespace BTCPayServer.Tests
|
|
{
|
|
public class ChargeTester
|
|
{
|
|
private readonly ServerTester _Parent;
|
|
|
|
public ChargeTester(ServerTester serverTester, string environmentName, string defaultValue, string defaultHost, Network network)
|
|
{
|
|
this._Parent = serverTester;
|
|
var url = serverTester.GetEnvironment(environmentName, defaultValue);
|
|
|
|
Client = (ChargeClient)new LightningClientFactory(network).Create(url);
|
|
P2PHost = _Parent.GetEnvironment(environmentName + "_HOST", defaultHost);
|
|
}
|
|
public ChargeClient Client { get; set; }
|
|
public string P2PHost { get; }
|
|
}
|
|
}
|