Example #1
0
        public async Task GetAccessTokenTest()
        {
            WeChatWeb web = Helper.CreateClient();

            string token = await web.GetToken();


            Assert.True(string.IsNullOrEmpty(token) == false, "string.IsNullOrEmpty(token)");
        }
Example #2
0
        public async Task GerIpAddress()
        {
            WeChatWeb web = Helper.CreateClient();

            string token = await web.GetToken();

            var result = await web.CommonService.GetIpAddress(token);

            Assert.True(result.Length > 0, "result.Length > 0");
        }
 public MenuServiceTest(ITestOutputHelper output)
 {
     _web    = Helper.CreateClient();
     _output = output;
     _token  = _web.GetToken().Result;
 }