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.
43 lines
1.3 KiB
43 lines
1.3 KiB
using Shentun.Peis.GuideTypes;
|
|
using Shentun.Peis.MaritalStatuses;
|
|
using Shentun.Peis.Models;
|
|
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 MaritalStatusesAppServiceTest : PeisApplicationTestBase
|
|
{
|
|
private readonly IRepository<MaritalStatus> _repository;
|
|
private readonly MaritalStatusesAppService _appService;
|
|
private readonly ITestOutputHelper _output;
|
|
private readonly IUnitOfWorkManager _unitOfWorkManager;
|
|
public MaritalStatusesAppServiceTest(ITestOutputHelper testOutputHelper)
|
|
{
|
|
_output = testOutputHelper;
|
|
_unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>();
|
|
_repository = GetRequiredService<IRepository<MaritalStatus>>();
|
|
_appService = GetRequiredService<MaritalStatusesAppService>();
|
|
}
|
|
|
|
[Fact]
|
|
public async Task GetForMaritalStatusListAsync()
|
|
{
|
|
var items = await _appService.GetForMaritalStatusListAsync();
|
|
foreach (var item in items)
|
|
{
|
|
|
|
_output.WriteLine(item.DisplayName);
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|