mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 18:48:10 +08:00
refactor(openai): 重新实现请求加密 XML 序列化的方式
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests
|
||||
{
|
||||
public class TestCase_ApiExecuteMpTests
|
||||
{
|
||||
[Fact(DisplayName = "测试用例:调用 API [POST] /getbindlink/{TOKEN}")]
|
||||
public async Task TestExecuteSign()
|
||||
{
|
||||
var request = new Models.GetBindLinkRequest() { RedirectUrl = "https://example.com" };
|
||||
var response = await TestClients.Instance.ExecuteGetBindLinkAsync(request);
|
||||
|
||||
Assert.NotNull(response.LinkUrl);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user