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.

46 lines
1.2 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
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.Tests
  9. {
  10. public class ImportLisResultPlugInsTest
  11. {
  12. private readonly ITestOutputHelper _output;
  13. public ImportLisResultPlugInsTest(ITestOutputHelper testOutputHelper)
  14. {
  15. _output = testOutputHelper;
  16. }
  17. [Fact]
  18. public async Task ImportResultAsync()
  19. {
  20. string configParm;
  21. string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
  22. configParm = File.ReadAllText(filePath);
  23. var input = new ImportLisResultPlugInsDbBase(configParm);
  24. var item = await input.ImportResultByPatientRegisterIdAsync(new Guid("3a126d1d-6974-a1c5-0e98-30241c2e5243"));
  25. }
  26. [Fact]
  27. public async Task DoWorkAsync()
  28. {
  29. string configParm;
  30. string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
  31. configParm = File.ReadAllText(filePath);
  32. var input = new ImportLisResultPlugInsDbBase(configParm);
  33. await input.DoWork();
  34. }
  35. }
  36. }