2020-12-07 22:17:42 +08:00

23 lines
675 B
C#

using Abp.AspNetCore.TestBase;
using Abp.Modules;
using Abp.Reflection.Extensions;
using KDTEC.ProManager.Web.Startup;
namespace KDTEC.ProManager.Web.Tests
{
[DependsOn(
typeof(ProManagerWebModule),
typeof(AbpAspNetCoreTestBaseModule)
)]
public class ProManagerWebTestModule : AbpModule
{
public override void PreInitialize()
{
Configuration.UnitOfWork.IsTransactional = false; //EF Core InMemory DB does not support transactions.
}
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(typeof(ProManagerWebTestModule).GetAssembly());
}
}
}