Ejemplo n.º 1
0
        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 LndInvoiceClient(Swagger);
            P2PHost = _Parent.GetEnvironment(environmentName + "_HOST", defaultHost);
        }
Ejemplo n.º 2
0
        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
            });
        }