mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-16 07:59:44 +08:00
22 lines
612 B
C#
22 lines
612 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
|
|
{
|
|
public class TestCase_ApiExecuteCgibinTests
|
|
{
|
|
[Fact(DisplayName = "测试用例:调用 API [GET] /cgi-bin/gettoken")]
|
|
public async Task TestExecuteCgibinToken()
|
|
{
|
|
var request = new Models.CgibinGetTokenRequest();
|
|
var response = await TestClients.Instance.ExecuteCgibinGetTokenAsync(request);
|
|
|
|
Assert.NotNull(response.AccessToken);
|
|
}
|
|
}
|
|
}
|