public async Task GetNetworkInfo() { ApiResponse response = await NetworkApi.GetNetworkInfo(); Assert.IsFalse(response.HasError); NetworkInfo result = response.GetResult <NetworkInfo>(); Assert.IsNotNull(result); }
public Result <NetworkInfo> GetNetworkInfo() { ApiResponse response = NetworkApi.GetNetworkInfo().Result; return(GetResult <NetworkInfo>(response)); }