public void should_simple_synchronous_call_getaddressdisplaydata_hash_with_bad_address_returns_fail() { AddressClient client = new AddressClient(); AddressDisplayData result = client.GetDisplayData(Network.Doge, Consts.Wrong); Assert.IsNotNull(result); Assert.IsTrue(result.Status == Consts.Fail); }
public void simple_synchronous_call_getdisplaydata_returns_result_with_proxy() { AddressClient client = new AddressClient(); AddressDisplayData result = client.GetDisplayData(Network.Doge, "DM7Yo7YqPtgMsGgphX9RAZFXFhu6Kd6JTT"); Assert.IsNotNull(result); Assert.IsTrue(result.Status == Consts.Success); Assert.IsTrue(result.Data.Address == "DM7Yo7YqPtgMsGgphX9RAZFXFhu6Kd6JTT"); }
public async Task <AddressDisplayData> GetDisplayDataAsync(Network network, string address) { AddressDisplayData response = await GetQuery <AddressDisplayData, CommonError>(string.Format(GetDisplayDataUrl, network._network, address)); return(response); }