GroupsMembersUpdateTest.cs 929 B

12345678910111213141516171819202122232425262728293031323334
  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 GroupsMembersUpdateTest : MockPostApiBaseTest<GroupsMembersUpdateRequest, GroupsMembersUpdateResponse>
  12. {
  13. protected override GroupsMembersUpdateRequest InitRequestObject()
  14. {
  15. return new GroupsMembersUpdateRequest
  16. {
  17. AccessToken = "123",
  18. OpenId = "test_openid",
  19. ToGroupId = 100
  20. };
  21. }
  22. protected override string GetReturnResult(bool errResult)
  23. {
  24. if (errResult)
  25. return "{\"errcode\":40013,\"errmsg\":\"invalid appid\"}";
  26. return "{\"errcode\": 0, \"errmsg\": \"ok\"}";
  27. }
  28. }
  29. }