mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-11-26 10:19:42 +08:00
test(work): 接口单元测试
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user