test(tenpayv3): 补充基于国密算法的客户端测试

This commit is contained in:
fudiwei
2022-11-28 12:10:04 +08:00
parent c75c68bde7
commit 23346ceab1
21 changed files with 102 additions and 80 deletions

View File

@@ -13,7 +13,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
{
BillDateString = "2021-04-05"
};
var response = await TestClients.Instance.ExecuteGetBillTradeBillAsync(request);
var response = await TestClients.InstanceUseRSA.ExecuteGetBillTradeBillAsync(request);
Assert.True(response.IsSuccessful());
Assert.NotNull(response.HashType);
@@ -28,7 +28,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
{
BillDateString = DateTimeOffset.Now.AddDays(-1).ToString("yyyy-MM-dd")
};
var response = await TestClients.Instance.ExecuteGetBillFundflowBillAsync(request);
var response = await TestClients.InstanceUseRSA.ExecuteGetBillFundflowBillAsync(request);
Assert.True(response.IsSuccessful());
Assert.NotNull(response.HashType);
@@ -43,7 +43,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
{
DownloadUrl = "https://api.mch.weixin.qq.com/v3/billdownload/file?token=FAKE_TOKEN"
};
var response = await TestClients.Instance.ExecuteDownloadBillFileAsync(request);
var response = await TestClients.InstanceUseRSA.ExecuteDownloadBillFileAsync(request);
Assert.True(response.IsSuccessful());
Assert.NotEmpty(response.RawBytes);