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.

48 lines
1.6 KiB

2 years ago
  1. using Shentun.Peis.ChargeRequests;
  2. using Shentun.Peis.Models;
  3. using Shentun.Peis.PatientRegisters;
  4. using Shentun.Peis.SumSummaryReports;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using Volo.Abp.Domain.Repositories;
  11. using Volo.Abp.Uow;
  12. using Xunit;
  13. using Xunit.Abstractions;
  14. namespace Shentun.Peis
  15. {
  16. public class SumSummaryReportAppServiceTest : PeisApplicationTestBase
  17. {
  18. private readonly IRepository<ChargeRequest, Guid> _repository;
  19. private readonly SumSummaryReportAppService _appService;
  20. private readonly ITestOutputHelper _output;
  21. private readonly IUnitOfWorkManager _unitOfWorkManager;
  22. public SumSummaryReportAppServiceTest(ITestOutputHelper testOutputHelper)
  23. {
  24. _output = testOutputHelper;
  25. _unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>();
  26. _repository = GetRequiredService<IRepository<ChargeRequest, Guid>>();
  27. _appService = GetRequiredService<SumSummaryReportAppService>();
  28. }
  29. [Fact]
  30. public async Task GetDetailResultsAsync()
  31. {
  32. using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true))
  33. {
  34. var entity = new PatientRegisterIdInputDto()
  35. {
  36. PatientRegisterId = new Guid("3a121795-7f84-9c04-844e-c2338a4241d1"),
  37. };
  38. var newEntity = await _appService.GetDetailResultsAsync(entity);
  39. //await unitOfWork.CompleteAsync();
  40. }
  41. }
  42. }
  43. }