public async Task GetAddressBookByTag() { ApiResponse response = await AddressBookApi.GetAddressBookByTag("John"); Assert.IsFalse(response.HasError); List <AddressBookInfo> result = response.GetResult <List <AddressBookInfo> >(); Assert.IsNotNull(result); }
public Result <List <AddressBookInfo> > GetAddressBookByTag(string tag) { ApiResponse response = AddressBookApi.GetAddressBookByTag(tag).Result; return(GetResult <List <AddressBookInfo> >(response)); }