mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(tenpayv3): 升级公共组件
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
{
|
||||
public class TestCase_ResponseVerificationTests
|
||||
{
|
||||
[Fact(DisplayName = "测试用例:验证响应签名")]
|
||||
public async Task TestVerifyResponseSignature()
|
||||
{
|
||||
await TestClients.InitializeCertificateManagerAsync();
|
||||
|
||||
var request = new Models.QueryCertificatesRequest();
|
||||
var response = await TestClients.Instance.ExecuteQueryCertificatesAsync(request);
|
||||
|
||||
Assert.True(response.RawStatus == 200);
|
||||
Assert.True(response.RawHeaders.Count > 0);
|
||||
Assert.True(response.RawBytes.Length > 0);
|
||||
Assert.True(TestClients.Instance.VerifyResponseSignature(response));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user