From 661c800079ad9028895572b1733c4802edcb2ffe Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Wed, 11 Mar 2020 16:31:41 +0300 Subject: [PATCH] Remove Identity test module dependencies from Account module Tests resolves https://github.com/abpframework/abp/issues/3075 --- .../Volo.Abp.Account.Application.Tests.csproj | 14 +++++++++++++- .../Abp/Account/AbpAccountApplicationTestModule.cs | 9 ++++++--- ...o.Abp.Identity.EntityFrameworkCore.Tests.csproj | 2 -- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/modules/account/test/Volo.Abp.Account.Application.Tests/Volo.Abp.Account.Application.Tests.csproj b/modules/account/test/Volo.Abp.Account.Application.Tests/Volo.Abp.Account.Application.Tests.csproj index 027e32bd09..e98baaf3ab 100644 --- a/modules/account/test/Volo.Abp.Account.Application.Tests/Volo.Abp.Account.Application.Tests.csproj +++ b/modules/account/test/Volo.Abp.Account.Application.Tests/Volo.Abp.Account.Application.Tests.csproj @@ -7,12 +7,24 @@ + + + + + + + + - + + + + + diff --git a/modules/account/test/Volo.Abp.Account.Application.Tests/Volo/Abp/Account/AbpAccountApplicationTestModule.cs b/modules/account/test/Volo.Abp.Account.Application.Tests/Volo/Abp/Account/AbpAccountApplicationTestModule.cs index 6be56c3a87..881f184c49 100644 --- a/modules/account/test/Volo.Abp.Account.Application.Tests/Volo/Abp/Account/AbpAccountApplicationTestModule.cs +++ b/modules/account/test/Volo.Abp.Account.Application.Tests/Volo/Abp/Account/AbpAccountApplicationTestModule.cs @@ -2,8 +2,9 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage; +using Volo.Abp.Authorization; +using Volo.Abp.Autofac; using Volo.Abp.EntityFrameworkCore; -using Volo.Abp.Identity; using Volo.Abp.Identity.AspNetCore; using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.Modularity; @@ -12,9 +13,12 @@ using Volo.Abp.PermissionManagement.EntityFrameworkCore; namespace Volo.Abp.Account { [DependsOn( + typeof(AbpAutofacModule), + typeof(AbpTestBaseModule), + typeof(AbpAuthorizationModule), typeof(AbpIdentityAspNetCoreModule), typeof(AbpAccountApplicationModule), - typeof(AbpIdentityDomainTestModule) + typeof(AbpIdentityEntityFrameworkCoreModule) )] public class AbpAccountApplicationTestModule : AbpModule { @@ -30,7 +34,6 @@ namespace Volo.Abp.Account }); }); } - private static SqliteConnection CreateDatabaseAndGetConnection() { var connection = new SqliteConnection("Data Source=:memory:"); diff --git a/modules/identity/test/Volo.Abp.Identity.EntityFrameworkCore.Tests/Volo.Abp.Identity.EntityFrameworkCore.Tests.csproj b/modules/identity/test/Volo.Abp.Identity.EntityFrameworkCore.Tests/Volo.Abp.Identity.EntityFrameworkCore.Tests.csproj index bb3329cb25..f4eb09517d 100644 --- a/modules/identity/test/Volo.Abp.Identity.EntityFrameworkCore.Tests/Volo.Abp.Identity.EntityFrameworkCore.Tests.csproj +++ b/modules/identity/test/Volo.Abp.Identity.EntityFrameworkCore.Tests/Volo.Abp.Identity.EntityFrameworkCore.Tests.csproj @@ -13,9 +13,7 @@ - -