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.

40 lines
1.2 KiB

using Shentun.Peis.CustomerOrgs;
using Shentun.Peis.GuidTypes;
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 CustomerOrgManagerTest : PeisDomainTestBase
{
private readonly IRepository<SysParmType> _repository;
private readonly CustomerOrgManager _manager;
private readonly ITestOutputHelper _output;
private readonly IUnitOfWorkManager _unitOfWorkManager;
public CustomerOrgManagerTest(ITestOutputHelper output)
{
_output = output;
_repository = GetRequiredService<IRepository<SysParmType>>();
_manager = GetRequiredService<CustomerOrgManager>();
_unitOfWorkManager = GetRequiredService<IUnitOfWorkManager>();
}
[Fact]
public async Task GetCustomerOrgChildrenId()
{
var items = await _manager.GetCustomerOrgChildrenId(new Guid("3a0c5101-a6a6-e48a-36ec-33e7567a99e6"));
_output.WriteLine(items.Count.ToString());
}
}
}