DotNetCore.SKIT.FlurlHttpCl.../test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/TestCase_ApiExecuteCgibinTests.cs

18 lines
521 B
C#
Raw Normal View History

2022-01-21 12:36:07 +08:00
using System.Threading.Tasks;
2021-06-05 16:39:07 +08:00
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{
2022-01-21 12:32:03 +08:00
public class TestCase_ApiExecuteCgibinTests
2021-06-05 16:39:07 +08:00
{
2022-01-21 12:32:03 +08:00
[Fact(DisplayName = "测试用例:调用 API [GET] /cgi-bin/gettoken")]
public async Task TestExecuteCgibinToken()
2021-06-05 16:39:07 +08:00
{
var request = new Models.CgibinGetTokenRequest();
var response = await TestClients.Instance.ExecuteCgibinGetTokenAsync(request);
Assert.NotNull(response.AccessToken);
}
}
}