mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 01:58:14 +08:00
feat(wxapi): 新增获取稳定版接口调用凭据接口
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user