6 changed files with 88 additions and 15 deletions
-
13src/Shentun.Peis.Application/RegisterCheckItems/RegisterCheckItemAppService.cs
-
1src/Shentun.Peis.Application/RegisterCheckSuggestions/RegisterCheckSuggestionAppService.cs
-
1src/Shentun.Peis.Application/RegisterCheckSummarys/RegisterCheckSummaryAppService.cs
-
2src/Shentun.Peis.Domain/Items/Item.cs
-
37src/Shentun.Peis.Domain/ReferenceRanges/ReferenceRangeManager.cs
-
49test/Shentun.Peis.Application.Tests/RegisterCheckItemAppServiceTest.cs
@ -0,0 +1,49 @@ |
|||
using Shentun.Peis.Models; |
|||
using Shentun.Peis.PatientRegisters; |
|||
using Shentun.Peis.Patients; |
|||
using Shentun.Peis.RegisterCheckItems; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Runtime.ConstrainedExecution; |
|||
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 RegisterCheckItemAppServiceTest : PeisApplicationTestBase |
|||
{ |
|||
private readonly IRepository<RegisterCheckItem> _repository; |
|||
private readonly RegisterCheckItemAppService _appService; |
|||
private readonly ITestOutputHelper _output; |
|||
private readonly IUnitOfWorkManager _unitOfWorkManager; |
|||
public RegisterCheckItemAppServiceTest(ITestOutputHelper testOutputHelper) |
|||
{ |
|||
_output = testOutputHelper; |
|||
_unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>(); |
|||
_repository = GetRequiredService<IRepository<RegisterCheckItem>>(); |
|||
_appService = GetRequiredService<RegisterCheckItemAppService>(); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task GetListInRegisterCheckIdAsync() |
|||
{ |
|||
using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true)) |
|||
{ |
|||
|
|||
|
|||
|
|||
var items = await _appService.GetListInRegisterCheckIdAsync( |
|||
new Guid("3a11ee70-034c-1ce6-40f9-7eabb02830a9"), |
|||
new Guid("3a11ee70-02cb-c5e6-a087-79ecdd0356b6")); |
|||
_output.WriteLine(items.Count().ToString()); |
|||
|
|||
await unitOfWork.CompleteAsync(); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue