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.

53 lines
1.7 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. using Shentun.Peis.AppointPatientRegisters;
  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 WebAppointWebPeisPlugInsTest
  11. {
  12. private readonly ITestOutputHelper _output;
  13. public WebAppointWebPeisPlugInsTest(ITestOutputHelper testOutputHelper)
  14. {
  15. _output = testOutputHelper;
  16. }
  17. [Fact]
  18. public async Task GetAppointPatientRegisterListByFilterAsync()
  19. {
  20. var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
  21. var items = await plugIns.GetAppointPatientRegisterListByFilterAsync(new AppointPatientRegisterPlugInsInputDto()
  22. {
  23. MobilePhone = "18911254911",
  24. AppointStartDate = DateTime.Now.Date.AddDays(-10)
  25. });
  26. foreach (var item in items)
  27. {
  28. _output.WriteLine(item.AppointPatientRegisterId + item.PersonName);
  29. }
  30. }
  31. [Fact]
  32. public async Task GetAppointRegisterAsbitemListByIdAsync()
  33. {
  34. var plugIns = new WebAppointWebPeisPlugIns(new Guid("43a9c3a5-8741-4c64-b869-bc304712d88e"));
  35. var items = await plugIns.GetAppointRegisterAsbitemListByIdAsync(new AppointPatientRegisterIdInputDto()
  36. {
  37. AppointPatientRegisterId = "3a12f181-d6d5-c539-1517-29f4714c7495"
  38. });
  39. foreach (var item in items)
  40. {
  41. _output.WriteLine(item.AppointRegisterAsbitemId + item.AsbitemName);
  42. }
  43. }
  44. }
  45. }