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