You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
  1. using Shentun.Peis.PlugIns.Extensions.LisRequests.Hzcy;
  2. using Shentun.Peis.PlugIns.LisRequests;
  3. using Shentun.Utilities;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Xunit.Abstractions;
  10. namespace Shentun.Peis.PlugIns.Extensions.Test
  11. {
  12. public class LisRequestPlugInsHzcyTest
  13. {
  14. private readonly ITestOutputHelper _output;
  15. public LisRequestPlugInsHzcyTest(ITestOutputHelper testOutputHelper)
  16. {
  17. _output = testOutputHelper;
  18. }
  19. [Fact]
  20. public async Task SendRequest()
  21. {
  22. var lisRequestPlugInsGem = new LisRequestPlugInsHzcy(GetConfigParm());
  23. await lisRequestPlugInsGem.SendRequestAsync(new LisRequestPlugInsInput()
  24. {
  25. LisRequestId = new Guid("3a123266-4581-83c4-9099-1f24cd0f3a49")
  26. });
  27. }
  28. private string GetConfigParm()
  29. {
  30. string configParm;
  31. string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
  32. configParm = File.ReadAllText(filePath);
  33. return configParm;
  34. }
  35. }
  36. }