コード例 #1
0
        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());
        }
コード例 #2
0
 public ResultWrapper <DataAssetForRpc[]> ndm_getDiscoveredDataAssets()
 => ResultWrapper <DataAssetForRpc[]> .Success(_consumerService.GetDiscoveredDataAssets()
                                               .Select(d => new DataAssetForRpc(d)).ToArray());