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