public async Task GetPageNumExtTest() { var res = await ApiInstance.GetPageNumAsync(contractSkuPoolExt : true); Assert.True(res.Success, res.ResultMessage); var pageNum = res.Result; Assert.NotNull(pageNum); Assert.NotEmpty(pageNum); Assert.Contains(pageNum, v => v.ContractSkuPoolExt != null); }
public async Task GetPageNumTest() { await Assert.ThrowsAsync <ArgumentException>(() => JdVopApi.GetPageNumAsync(null)); var res = await ApiInstance.GetPageNumAsync(); Assert.True(res.Success, res.ResultMessage); var pageNum = res.Result; Assert.NotNull(pageNum); Assert.NotEmpty(pageNum); Assert.DoesNotContain(pageNum, v => v.ContractSkuPoolExt != null); TestHelper.ProductPageNum = pageNum; }