public async Task get_known_providers_should_return_providers_info() { _consumerService.GetKnownProvidersAsync().Returns(new[] { new ProviderInfo("test", TestItem.AddressA) }); var result = await _rpc.ndm_getKnownProviders(); await _consumerService.Received().GetKnownProvidersAsync(); result.Data.Should().ContainSingle(); var provider = result.Data.Single(); provider.Name.Should().Be("test"); provider.Address.Should().Be(TestItem.AddressA); }