WeiXinTest.cs 565 B

1234567891011121314151617181920
  1. using Hotline.Share.Dtos.Snapshot;
  2. using Hotline.ThirdAccountDomainServices.Interfaces;
  3. using Hotline.WeChat;
  4. namespace Hotline.Tests.Infrastructure;
  5. public class WeiXinTest
  6. {
  7. private readonly IThirdIdentiyService _weChatService;
  8. public WeiXinTest(IThirdIdentiyService weChatService)
  9. {
  10. _weChatService = weChatService;
  11. }
  12. [Fact]
  13. public async Task GetPhoneNumber_Test()
  14. {
  15. var result = await _weChatService.GetPhoneNumberAsync(new ThirdTokenDto { AppId = "12333", Secret = "4444444" }, CancellationToken.None);
  16. }
  17. }