using Shentun.Peis.CustomerOrgs; using Shentun.Peis.Models; using Shentun.Peis.RegisterAsbitems; 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 RegisterCheckAsbitemAppServiceTest : PeisApplicationTestBase { private readonly IRepository _repository; private readonly RegisterCheckAsbitemAppService _appService; private readonly ITestOutputHelper _output; private readonly IUnitOfWorkManager _unitOfWorkManager; public RegisterCheckAsbitemAppServiceTest(ITestOutputHelper testOutputHelper) { _output = testOutputHelper; _unitOfWorkManager = GetRequiredService(); _repository = GetRequiredService>(); _appService = GetRequiredService(); } [Fact] public async Task GetListInPatientRegisterIdAsync() { using (IUnitOfWork unitOfWork = _unitOfWorkManager.Begin()) { var items = await _appService.GetListInPatientRegisterIdAsync(new Guid("3a107151-72d8-8446-8fd5-78c39d17753c")); foreach (var item in items) { _output.WriteLine(item.AsbitemName); } //await unitOfWork.CompleteAsync(); } } } }