refactor(openai): 重新实现请求加密 XML 序列化的方式

This commit is contained in:
Fu Diwei
2022-11-21 15:56:59 +08:00
parent 154eea7ac2
commit 9741b34642
40 changed files with 312 additions and 136 deletions

View File

@@ -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);
}
}
}