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.

42 lines
1.2 KiB

11 months ago
11 months ago
  1. using Shentun.Pacs.GuidTypes;
  2. using Shentun.Pacs.Models;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Volo.Abp.Domain.Repositories;
  9. using Volo.Abp.Uow;
  10. using Xunit;
  11. using Xunit.Abstractions;
  12. namespace Shentun.Pacs
  13. {
  14. public class CacheServiceTest : PeisDomainTestBase
  15. {
  16. private readonly IRepository<GuideType, char> _repository;
  17. private readonly CacheService _cacheService;
  18. //private readonly IDbContextProvider<PeisDbContext> _dbContextProvider;
  19. private readonly ITestOutputHelper _output;
  20. private readonly IUnitOfWorkManager _unitOfWorkManager;
  21. public CacheServiceTest(ITestOutputHelper output)
  22. {
  23. _output = output;
  24. _repository = GetRequiredService<IRepository<GuideType, char>>();
  25. _cacheService = GetRequiredService<CacheService>();
  26. _unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>();
  27. }
  28. [Fact]
  29. public async Task GetUserAsync()
  30. {
  31. var item = await _cacheService.GetSurnameAsync(new Guid("3a0c654b-a28c-88da-80b7-d5330710ac50"));
  32. _output.WriteLine(item);
  33. }
  34. }
  35. }