DotNetCore.SKIT.FlurlHttpCl.../test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/TestCase_ApiExecuteCgibinTests.cs
2022-01-21 12:36:07 +08:00

18 lines
521 B
C#

using System.Threading.Tasks;
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{
public class TestCase_ApiExecuteCgibinTests
{
[Fact(DisplayName = "测试用例:调用 API [GET] /cgi-bin/gettoken")]
public async Task TestExecuteCgibinToken()
{
var request = new Models.CgibinGetTokenRequest();
var response = await TestClients.Instance.ExecuteCgibinGetTokenAsync(request);
Assert.NotNull(response.AccessToken);
}
}
}