public void get_discovered_data_assets_should_return_data_assets() { _consumerService.GetDiscoveredDataAssets().Returns(new List <DataAsset> { GetDataAsset() }); var result = _rpc.ndm_getDiscoveredDataAssets(); _consumerService.Received().GetDiscoveredDataAssets(); result.Data.Should().ContainSingle(); VerifyDataAsset(result.Data.Single()); }
public ResultWrapper <DataAssetForRpc[]> ndm_getDiscoveredDataAssets() => ResultWrapper <DataAssetForRpc[]> .Success(_consumerService.GetDiscoveredDataAssets() .Select(d => new DataAssetForRpc(d)).ToArray());