Exemplo n.º 1
0
        public async Task GetCityTest()
        {
            await Assert.ThrowsAsync <ArgumentException>(() => JdVopApi.GetCityAsync(null, 0));

            var res = await ApiInstance.GetCityAsync(TestHelper.JDArress.ProvinceId);

            Assert.True(res.Success, res.ResultMessage);
            var city = res.Result;

            Assert.NotNull(city);
            Assert.NotEmpty(city);
            Assert.Contains(TestHelper.JDArress.City, city.Keys);
        }