Ejemplo n.º 1
0
        public async Task Test_GetTicket()
        {
            IAccessTokenService accessTokenService = _sp.GetService <IAccessTokenService>();
            var tokenResult = await accessTokenService.GetToken(Config.AppId, Config.AppSecret);

            var ticketResult = await accessTokenService.GetTicket(tokenResult.access_token);

            Assert.IsNotNull(ticketResult);
            Assert.IsNotNull(ticketResult.ticket);
        }