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.
47 lines
1.6 KiB
47 lines
1.6 KiB
using Shentun.Peis.DiagnosisFunctions;
|
|
using Shentun.Peis.Models;
|
|
using Shentun.Peis.SumSummaryHeaders;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Domain.Repositories;
|
|
using Volo.Abp.Uow;
|
|
using Xunit;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Shentun.Peis
|
|
{
|
|
public class SumSummaryHeaderAppServiceTest:PeisApplicationTestBase
|
|
{
|
|
private readonly IRepository<SumSummaryHeader, Guid> _repository;
|
|
private readonly SumSummaryHeaderAppService _appService;
|
|
private readonly ITestOutputHelper _output;
|
|
private readonly IUnitOfWorkManager _unitOfWorkManager;
|
|
public SumSummaryHeaderAppServiceTest(ITestOutputHelper testOutputHelper)
|
|
{
|
|
_output = testOutputHelper;
|
|
_unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>();
|
|
_repository = GetRequiredService<IRepository<SumSummaryHeader, Guid>>();
|
|
_appService = GetRequiredService<SumSummaryHeaderAppService>();
|
|
}
|
|
|
|
[Fact]
|
|
public async Task GetSumSummaryListAsync()
|
|
{
|
|
using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true))
|
|
{
|
|
|
|
var result = await _appService.GetSumSummaryListAsync(new PatientRegisters.PatientRegisterSumInputDto()
|
|
{
|
|
PatientRegisterId = new Guid("3a1051a8-933c-0f59-514f-837b6cf274d9")
|
|
});
|
|
foreach (var item in result)
|
|
{
|
|
_output.WriteLine(item.SummaryTitle);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|