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_ApiExecuteDialogTests
{
[Fact(DisplayName = "测试用例:调用 API [POST] /sign/{TOKEN}")]
public async Task TestExecuteSign()
{
var request = new Models.SignRequest() { UserId = "TEST_USERID" };
var response = await TestClients.Instance.ExecuteSignAsync(request);
Assert.NotNull(response.Signature);
}
}
}