public LndMockTester(ServerTester serverTester, string environmentName, string defaultValue, string defaultHost, Network network) { this._Parent = serverTester; var url = serverTester.GetEnvironment(environmentName, defaultValue); Swagger = new LndSwaggerClient(new LndRestSettings(new Uri(url)) { AllowInsecure = true }); Client = new LndClient(Swagger, network); P2PHost = _Parent.GetEnvironment(environmentName + "_HOST", defaultHost); }
public UnitTests(ITestOutputHelper output) { this.output = output; initializeEnvironment(); MerchantLnd = new LndSwaggerClient(new LndRestSettings(new Uri("https://127.0.0.1:53280")) { AllowInsecure = true }); InvoiceClient = new LndInvoiceClient(MerchantLnd); CustomerLnd = new LndSwaggerClient(new LndRestSettings(new Uri("https://127.0.0.1:53281")) { AllowInsecure = true }); }