1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using JCSoft.WX.Framework.Models.ApiRequests;
- using JCSoft.WX.Framework.Models.ApiResponses;
- using Xunit;
- namespace FrameworkCoreTest
- {
- public class QrCreatedRequestTestTest : MockPostApiBaseTest<QrcodeCreateRequest, QrcodeCreateResponse>
- {
- protected override QrcodeCreateRequest InitRequestObject()
- {
- return new QrcodeCreateRequest
- {
- AccessToken = "123",
- ActionInfo = new ActionInfo
- {
- Scene = new Scene
- {
- SceneId = 1234
- }
- },
- ActionName = ActionName.QR_LIMIT_SCENE,
- ExpireSeconds = 1000
- };
- }
- protected override string GetReturnResult(bool errResult)
- {
- if (errResult) return s_errmsg;
- throw new NotImplementedException();
- }
- }
- }
|