mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-20 14:16:45 +08:00
19 lines
449 B
C#
19 lines
449 B
C#
using Util.Helpers;
|
|
using Xunit;
|
|
|
|
namespace Util.ObjectMapping.AutoMapper.Tests.Infrastructure {
|
|
/// <summary>
|
|
/// 测试基类
|
|
/// </summary>
|
|
[Collection( "GlobalConfig" )]
|
|
public abstract class TestBase {
|
|
/// <summary>
|
|
/// 获取服务
|
|
/// </summary>
|
|
/// <typeparam name="T">对象类型</typeparam>
|
|
protected T GetService<T>() {
|
|
return Ioc.Create<T>();
|
|
}
|
|
}
|
|
}
|