mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 10:38:10 +08:00
test(tenpayv3): 补充基于国密算法的客户端测试
This commit is contained in:
@@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
},
|
||||
NotifyUrl = "http://127.0.0.1"
|
||||
};
|
||||
var response = await TestClients.Instance.ExecuteCreateCombineTransactionAppAsync(request);
|
||||
var response = await TestClients.InstanceUseRSA.ExecuteCreateCombineTransactionAppAsync(request);
|
||||
|
||||
Assert.NotNull(response.PrepayId);
|
||||
}
|
||||
@@ -66,7 +66,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
},
|
||||
NotifyUrl = "http://127.0.0.1"
|
||||
};
|
||||
var response = await TestClients.Instance.ExecuteCreateCombineTransactionJsapiAsync(request);
|
||||
var response = await TestClients.InstanceUseRSA.ExecuteCreateCombineTransactionJsapiAsync(request);
|
||||
|
||||
Assert.NotNull(response.PrepayId);
|
||||
}
|
||||
@@ -92,7 +92,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
},
|
||||
NotifyUrl = "http://127.0.0.1"
|
||||
};
|
||||
var response = await TestClients.Instance.ExecuteCreateCombineTransactionH5Async(request);
|
||||
var response = await TestClients.InstanceUseRSA.ExecuteCreateCombineTransactionH5Async(request);
|
||||
|
||||
Assert.NotNull(response.H5Url);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
},
|
||||
NotifyUrl = "http://127.0.0.1"
|
||||
};
|
||||
var response = await TestClients.Instance.ExecuteCreateCombineTransactionNativeAsync(request);
|
||||
var response = await TestClients.InstanceUseRSA.ExecuteCreateCombineTransactionNativeAsync(request);
|
||||
|
||||
Assert.NotNull(response.QrcodeUrl);
|
||||
}
|
||||
@@ -130,7 +130,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
{
|
||||
CombineOutTradeNumber = "FAKE_OUTTRADENO"
|
||||
};
|
||||
var response = await TestClients.Instance.ExecuteGetCombineTransactionByCombineOutTradeNumberAsync(request);
|
||||
var response = await TestClients.InstanceUseRSA.ExecuteGetCombineTransactionByCombineOutTradeNumberAsync(request);
|
||||
|
||||
Assert.NotNull(response.CombineAppId);
|
||||
Assert.NotNull(response.CombineMerchantId);
|
||||
@@ -153,7 +153,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
}
|
||||
}
|
||||
};
|
||||
var response = await TestClients.Instance.ExecuteCloseCombineTransactionAsync(request);
|
||||
var response = await TestClients.InstanceUseRSA.ExecuteCloseCombineTransactionAsync(request);
|
||||
|
||||
Assert.True(response.IsSuccessful());
|
||||
}
|
||||
|
Reference in New Issue
Block a user