public void TestSearchResellerInvalidPageNo()
        {
            Result <PagedReseller> result = API.SearchReseller(-1, 3000, ResellerSearchOrderBy.Name, null, ResellerStatus.All);

            _logger.DebugFormat("Result=\n{0}", JsonConvert.SerializeObject(result));
            Assert.IsTrue(result.BusinessCode == -1);
        }
Exemplo n.º 2
0
        public void testProxy()
        {
            IWebProxy proxy = new WebProxy("localhost", 1080);

            API.SetConnectionTimeoutTime(5000);
            API.SetProxy(proxy);

            Result <PagedReseller> result = API.SearchReseller(1, 10, ResellerSearchOrderBy.Name, null, ResellerStatus.All);

            _logger.DebugFormat("Result=\n{0}", JsonConvert.SerializeObject(result));
            Assert.IsTrue(result.BusinessCode == 0);
            Assert.IsTrue(result.PageInfo.TotalCount > 0);
        }