mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 19:37:35 +08:00
21 lines
564 B
C#
21 lines
564 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Api.UnitTests
|
|
{
|
|
public class WechatApiExecuteCgibinWithAppSecretTests
|
|
{
|
|
[Fact(DisplayName = "[GET] /sns/cgi-bin/token")]
|
|
public async Task CgibinTokenTest()
|
|
{
|
|
var request = new Models.CgibinTokenRequest();
|
|
var response = await TestClients.Instance.ExecuteCgibinTokenAsync(request);
|
|
|
|
Assert.NotNull(response.AccessToken);
|
|
}
|
|
}
|
|
}
|