TianQueTest.cs 792 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using TianQue.Sdk;
  7. namespace Hotline.Application.Tests.Infrastructure;
  8. public class TianQueTest
  9. {
  10. [Fact]
  11. public void Test_GenerateNonce()
  12. {
  13. // Arrange
  14. var nonce = SignUtils.GenerateNonce();
  15. // Assert
  16. Assert.NotNull(nonce);
  17. Assert.Equal(64, nonce.Length);
  18. // b55dfdedba900437d486e70e5fb78ed50afaeb910a2346f16ef03af656f8bb0b
  19. }
  20. [Fact]
  21. public async Task PostAcceptInfo_Test()
  22. {
  23. // Arrange
  24. //var tiqnQueService = new TiqnQueService();
  25. //// Act
  26. //var result = await tiqnQueService.PostAcceptInfo();
  27. //// Assert
  28. //Assert.Equal("ok", result);
  29. }
  30. }