QrCreatedRequestTestTest.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using JCSoft.WX.Framework.Models.ApiRequests;
  7. using JCSoft.WX.Framework.Models.ApiResponses;
  8. using Xunit;
  9. namespace FrameworkCoreTest
  10. {
  11. public class QrCreatedRequestTestTest : MockPostApiBaseTest<QrcodeCreateRequest, QrcodeCreateResponse>
  12. {
  13. protected override QrcodeCreateRequest InitRequestObject()
  14. {
  15. return new QrcodeCreateRequest
  16. {
  17. AccessToken = "123",
  18. ActionInfo = new ActionInfo
  19. {
  20. Scene = new Scene
  21. {
  22. SceneId = 1234
  23. }
  24. },
  25. ActionName = ActionName.QR_LIMIT_SCENE,
  26. ExpireSeconds = 1000
  27. };
  28. }
  29. protected override string GetReturnResult(bool errResult)
  30. {
  31. if (errResult) return s_errmsg;
  32. throw new NotImplementedException();
  33. }
  34. }
  35. }