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.

47 lines
1.3 KiB

1 year ago
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
1 year ago
2 years ago
2 years ago
  1. using Shentun.Peis.PlugIns.ImportLisResults;
  2. using Shentun.Utilities;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Xunit.Abstractions;
  9. namespace Shentun.Peis.PlugIns.Tests
  10. {
  11. public class ImportLisResultPlugInsTest
  12. {
  13. private readonly ITestOutputHelper _output;
  14. public ImportLisResultPlugInsTest(ITestOutputHelper testOutputHelper)
  15. {
  16. _output = testOutputHelper;
  17. }
  18. [Fact]
  19. public async Task ImportResultAsync()
  20. {
  21. string configParm;
  22. string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
  23. configParm = File.ReadAllText(filePath);
  24. var input = new ImportLisResultPlugInsDbBase(configParm);
  25. var item = await input.ImportResultByPatientRegisterIdAsync(new Guid("3a126d1d-6974-a1c5-0e98-30241c2e5243"));
  26. }
  27. [Fact]
  28. public async Task DoWorkAsync()
  29. {
  30. string configParm;
  31. string filePath = DirectoryHelper.GetAppDirectory() + "/appsettings.json";
  32. configParm = File.ReadAllText(filePath);
  33. var input = new ImportLisResultPlugInsDbBase(new Guid("77f74058-4393-4e8b-a487-c27faa58be6b"));
  34. await input.DoWork();
  35. }
  36. }
  37. }