feat(wxapi): 新增获取稳定版接口调用凭据接口

This commit is contained in:
gudieaofei
2023-05-31 16:51:51 +08:00
committed by GitHub
parent f83b9a9926
commit eef418308c
4 changed files with 82 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
using System.Threading.Tasks;
using System.Threading.Tasks;
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Api.UnitTests
@@ -14,6 +14,15 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.UnitTests
Assert.NotNull(response.AccessToken);
}
[Fact(DisplayName = "测试用例:调用 API [POST] /cgi-bin/stable_token")]
public async Task TestExecuteCgibinStableToken()
{
var request = new Models.CgibinStableTokenRequest();
var response = await TestClients.Instance.ExecuteCgibinStableTokenAsync(request);
Assert.NotNull(response.AccessToken);
}
[Fact(DisplayName = "测试用例:调用 API [GET] /cgi-bin/ticket/getticket")]
public async Task TestExecuteCgibinTicketGetTicket()
{