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.
|
|
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<RegisterCheckAsbitem> _repository; private readonly RegisterCheckAsbitemAppService _appService; private readonly ITestOutputHelper _output; private readonly IUnitOfWorkManager _unitOfWorkManager; public RegisterCheckAsbitemAppServiceTest(ITestOutputHelper testOutputHelper) { _output = testOutputHelper; _unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>(); _repository = GetRequiredService<IRepository<RegisterCheckAsbitem>>(); _appService = GetRequiredService<RegisterCheckAsbitemAppService>(); }
[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();
} } }}
|