WeiXinTest.cs 605 B

123456789101112131415161718192021222324
  1. using Hotline.Share.Dtos.Snapshot;
  2. using Hotline.WeChat;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Hotline.Application.Tests.Infrastructure;
  9. public class WeiXinTest
  10. {
  11. private readonly WeChatService _weChatService;
  12. public WeiXinTest(WeChatService weChatService)
  13. {
  14. _weChatService = weChatService;
  15. }
  16. // [Fact]
  17. public async Task GetPhoneNumber_Test()
  18. {
  19. var result = await _weChatService.GetPhoneNumberAsync(new ThirdTokenDto { AppId = "12333", Secret = "4444444" });
  20. }
  21. }