DotNetCore.SKIT.FlurlHttpCl.../test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/TestCase_ApiExecuteProfitSharingTests.cs

28 lines
967 B
C#
Raw Normal View History

2022-01-21 14:30:17 +08:00
using System.Threading.Tasks;
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
{
2022-03-11 17:21:28 +08:00
public class TestCase_ApiExecuteProfitSharingTests
{
2022-01-21 13:10:56 +08:00
[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.Instance.EncryptRequestSensitiveProperty(request);
var response = await TestClients.Instance.ExecuteAddProfitSharingReceiverAsync(request);
Assert.True(response.IsSuccessful());
}
}
}