mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 01:58:14 +08:00
19 lines
592 B
C#
19 lines
592 B
C#
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests
|
|
{
|
|
public class TestCase_ApiExecuteTokenTests
|
|
{
|
|
[Fact(DisplayName = "测试用例:调用 API [POST] /v2/token")]
|
|
public async Task TestExecuteTokenV2()
|
|
{
|
|
var request = new Models.TokenV2Request() { AccountId = TestConfigs.WechatAccountId };
|
|
var response = await TestClients.OpenAIInstance.ExecuteTokenV2Async(request);
|
|
|
|
Assert.NotNull(response.Data);
|
|
Assert.NotNull(response.Data.AccessToken);
|
|
}
|
|
}
|
|
}
|