using Microsoft.EntityFrameworkCore; using Shentun.Pacs.GuideTypes; using Shentun.Pacs.Models; using Shentun.Pacs.Sexs; using Shouldly; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Volo.Abp.Application.Dtos; using Volo.Abp.Domain.Repositories; using Volo.Abp.Uow; using Xunit; using Xunit.Abstractions; namespace Shentun.Pacs { public class SexAppServiceTest:PeisApplicationTestBase { private readonly IRepository _repository; private readonly SexAppService _appService; private readonly ITestOutputHelper _output; private readonly IUnitOfWorkManager _unitOfWorkManager; public SexAppServiceTest(ITestOutputHelper testOutputHelper) { _output = testOutputHelper; _unitOfWorkManager = GetRequiredService(); _repository = GetRequiredService>(); _appService = GetRequiredService(); } [Fact] public async Task UpdateAsync() { var dto = new UpdateSexDto() { DisplayName = "未知", SimpleCode = "A", }; try { await _appService.UpdateAsync('U', dto); } catch (Exception ex) { _output.WriteLine(ex.ToString()); } } } }