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.

69 lines
2.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. using Shentun.Peis.AppointPatientRegisters;
  2. using Shentun.Peis.PlugIns.WebAppoints;
  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 WebAppointWebPeisPlugInsTest
  12. {
  13. private readonly ITestOutputHelper _output;
  14. public WebAppointWebPeisPlugInsTest(ITestOutputHelper testOutputHelper)
  15. {
  16. _output = testOutputHelper;
  17. }
  18. [Fact]
  19. public async Task GetAppointPatientRegisterListByFilterAsync()
  20. {
  21. var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
  22. var items = await plugIns.GetAppointPatientRegisterListByFilterAsync(new AppointPatientRegisterInputDto()
  23. {
  24. MobilePhone = "18911254911",
  25. AppointStartDate = DateTime.Now.Date.AddDays(-10)
  26. });
  27. foreach (var item in items)
  28. {
  29. _output.WriteLine(item.AppointPatientRegisterId + item.PersonName);
  30. }
  31. }
  32. [Fact]
  33. public async Task GetAppointRegisterAsbitemListByIdAsync()
  34. {
  35. var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
  36. var items = await plugIns.GetAppointRegisterAsbitemListByIdAsync(new AppointPatientRegisterIdInputDto()
  37. {
  38. AppointPatientRegisterId = "3a12f181-d6d5-c539-1517-29f4714c7495"
  39. });
  40. foreach (var item in items)
  41. {
  42. _output.WriteLine(item.AppointRegisterAsbitemId + item.AsbitemName);
  43. }
  44. }
  45. [Fact]
  46. public async Task GetByPatientRegisterIdAsync()
  47. {
  48. var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
  49. var items = await plugIns.GetByPatientRegisterIdAsync(new AppointPatientRegisterIdInputDto()
  50. {
  51. ThirdInterFaceId = new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"),
  52. PatientRegisterId = new Guid("3a1361f6-3ec4-a4bc-9641-b269f619561a")
  53. });
  54. _output.WriteLine(items.AppointPatientRegisterId.ToString());
  55. }
  56. }
  57. }