test(work): 接口单元测试

This commit is contained in:
Fu Diwei
2021-06-05 16:39:07 +08:00
parent d70996c8fc
commit 8d2d0321f8

View File

@@ -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);
}
}
}