Ejemplo n.º 1
0
        private void BwChannelsQuery(object sender, DoWorkEventArgs e)
        {
            var openChannels    = LndClient.ListChannels();
            var pendingChannels = LndClient.ListPendingChannels();
            var closedChannels  = LndClient.ListClosedChannels();
            var result          = Tuple.Create(openChannels, pendingChannels, closedChannels);

            e.Result = result;
        }
Ejemplo n.º 2
0
        public void ListChannelsTest()
        {
            // Arrange
            LndClient lndClient = new LndClient();

            // Act
            ListChannelsResponse response = lndClient.ListChannels();

            Assert.IsNotNull(response);
        }