Ejemplo n.º 1
0
        public void get_connected_providers_should_return_providers_addresses()
        {
            _consumerService.GetConnectedProviders().Returns(new[] { TestItem.AddressA });
            var result = _rpc.ndm_getConnectedProviders();

            _consumerService.Received().GetConnectedProviders();
            result.Data.Should().ContainSingle();
            result.Data.Single().Should().Be(TestItem.AddressA);
        }
 public ResultWrapper <Address[]> ndm_getConnectedProviders()
 => ResultWrapper <Address[]> .Success(_consumerService.GetConnectedProviders().ToArray());