public async Task get_proxy_should_return_proxy_info() { var ndmProxy = new NdmProxy(true, new[] { "http://localhost:8545" }); _consumerService.GetProxyAsync().Returns(ndmProxy); var result = await _rpc.ndm_getProxy(); result.Data.Enabled.Should().Be(ndmProxy.Enabled); result.Data.Urls.Should().BeSameAs(ndmProxy.Urls); await _consumerService.Received().GetProxyAsync(); }