mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
28 lines
979 B
C#
28 lines
979 B
C#
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
|
{
|
|
public class TestCase_ApiExecuteProfitSharingTests
|
|
{
|
|
[Fact(DisplayName = "测试用例:调用 API [POST] /profitsharing/receivers/add")]
|
|
public async Task TestExecuteAddProfitSharingReceiver()
|
|
{
|
|
await TestClients.InitializeCertificateManagerAsync();
|
|
|
|
var request = new Models.AddProfitSharingReceiverRequest()
|
|
{
|
|
AppId = TestConfigs.WechatAppId,
|
|
Account = TestConfigs.WechatOpenId,
|
|
RelationType = "DISTRIBUTOR",
|
|
Name = "NAME",
|
|
Type = "PERSONAL_OPENID"
|
|
};
|
|
TestClients.InstanceUseRSA.EncryptRequestSensitiveProperty(request);
|
|
var response = await TestClients.InstanceUseRSA.ExecuteAddProfitSharingReceiverAsync(request);
|
|
|
|
Assert.True(response.IsSuccessful());
|
|
}
|
|
}
|
|
}
|