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.

44 lines
1.5 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. using Shentun.Peis.CustomerOrgs;
  2. using Shentun.Peis.Models;
  3. using Shentun.Peis.RegisterAsbitems;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Volo.Abp.Domain.Repositories;
  10. using Volo.Abp.Uow;
  11. using Xunit;
  12. using Xunit.Abstractions;
  13. namespace Shentun.Peis
  14. {
  15. public class RegisterCheckAsbitemAppServiceTest : PeisApplicationTestBase
  16. {
  17. private readonly IRepository<RegisterCheckAsbitem> _repository;
  18. private readonly RegisterCheckAsbitemAppService _appService;
  19. private readonly ITestOutputHelper _output;
  20. private readonly IUnitOfWorkManager _unitOfWorkManager;
  21. public RegisterCheckAsbitemAppServiceTest(ITestOutputHelper testOutputHelper)
  22. {
  23. _output = testOutputHelper;
  24. _unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>();
  25. _repository = GetRequiredService<IRepository<RegisterCheckAsbitem>>();
  26. _appService = GetRequiredService<RegisterCheckAsbitemAppService>();
  27. }
  28. [Fact]
  29. public async Task GetListInPatientRegisterIdAsync()
  30. {
  31. using (IUnitOfWork unitOfWork = _unitOfWorkManager.Begin())
  32. {
  33. var items = await _appService.GetListInPatientRegisterIdAsync(new Guid("3a107151-72d8-8446-8fd5-78c39d17753c"));
  34. foreach (var item in items)
  35. {
  36. _output.WriteLine(item.AsbitemName);
  37. }
  38. //await unitOfWork.CompleteAsync();
  39. }
  40. }
  41. }
  42. }