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.

38 lines
1.1 KiB

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