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.

40 lines
1.2 KiB

11 months ago
11 months ago
  1. using Shentun.Pacs.CustomerOrgs;
  2. using Shentun.Pacs.GuidTypes;
  3. using Shentun.Pacs.Models;
  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.Pacs
  14. {
  15. public class CustomerOrgManagerTest : PeisDomainTestBase
  16. {
  17. private readonly IRepository<SysParmType> _repository;
  18. private readonly CustomerOrgManager _manager;
  19. private readonly ITestOutputHelper _output;
  20. private readonly IUnitOfWorkManager _unitOfWorkManager;
  21. public CustomerOrgManagerTest(ITestOutputHelper output)
  22. {
  23. _output = output;
  24. _repository = GetRequiredService<IRepository<SysParmType>>();
  25. _manager = GetRequiredService<CustomerOrgManager>();
  26. _unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>();
  27. }
  28. [Fact]
  29. public async Task GetCustomerOrgChildrenId()
  30. {
  31. var items = await _manager.GetCustomerOrgChildrenId(new Guid("3a0c5101-a6a6-e48a-36ec-33e7567a99e6"));
  32. _output.WriteLine(items.Count.ToString());
  33. }
  34. }
  35. }