diff --git a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo.Abp.Users.EntityFrameworkCore.Tests.csproj b/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo.Abp.Users.EntityFrameworkCore.Tests.csproj
deleted file mode 100644
index 912daad74d..0000000000
--- a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo.Abp.Users.EntityFrameworkCore.Tests.csproj
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- netcoreapp2.2
- Volo.Abp.Users.EntityFrameworkCore.Tests
- Volo.Abp.Users.EntityFrameworkCore.Tests
- latest
- true
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo.Abp.Users.EntityFrameworkCore.Tests.csproj.DotSettings b/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo.Abp.Users.EntityFrameworkCore.Tests.csproj.DotSettings
deleted file mode 100644
index 58ad6c8854..0000000000
--- a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo.Abp.Users.EntityFrameworkCore.Tests.csproj.DotSettings
+++ /dev/null
@@ -1,2 +0,0 @@
-
- CSharp71
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/AbpUserRepository_Tests.cs b/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/AbpUserRepository_Tests.cs
deleted file mode 100644
index 7f92ae7483..0000000000
--- a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/AbpUserRepository_Tests.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Volo.Abp.Users.EntityFrameworkCore
-{
- public class AbpUserRepository_Tests : AbpUserRepository_Tests
- {
-
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/AbpUsersEntityFrameworkCoreTestModule.cs b/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/AbpUsersEntityFrameworkCoreTestModule.cs
deleted file mode 100644
index 7a19077afe..0000000000
--- a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/AbpUsersEntityFrameworkCoreTestModule.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.Extensions.DependencyInjection;
-using Volo.Abp.EntityFrameworkCore;
-using Volo.Abp.Modularity;
-using Volo.Abp.Uow;
-
-namespace Volo.Abp.Users.EntityFrameworkCore
-{
- [DependsOn(
- typeof(AbpUsersTestsSharedModule),
- typeof(AbpUsersEntityFrameworkCoreModule)
- )]
- public class AbpUsersEntityFrameworkCoreTestModule : AbpModule
- {
- public override void ConfigureServices(IServiceCollection services)
- {
- services.AddEntityFrameworkInMemoryDatabase();
-
- var databaseName = Guid.NewGuid().ToString();
-
- services.Configure(options =>
- {
- options.Configure(context =>
- {
- context.DbContextOptions.UseInMemoryDatabase(databaseName);
- });
- });
-
- services.Configure(options =>
- {
- options.TransactionBehavior = UnitOfWorkTransactionBehavior.Disabled; //EF in-memory database does not support transactions
- });
-
- services.AddAssemblyOf();
- }
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/ExternalUserLookupService_Tests.cs b/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/ExternalUserLookupService_Tests.cs
deleted file mode 100644
index 26fd633808..0000000000
--- a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/ExternalUserLookupService_Tests.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Volo.Abp.Users.EntityFrameworkCore
-{
- public class ExternalUserLookupService_Tests : ExternalUserLookupService_Tests
- {
-
- }
-}
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/LocalUserLookupService_Tests.cs b/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/LocalUserLookupService_Tests.cs
deleted file mode 100644
index 089fd35dbe..0000000000
--- a/modules/users/test/Volo.Abp.Users.EntityFrameworkCore.Tests/Volo/Abp/Users/EntityFrameworkCore/LocalUserLookupService_Tests.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Volo.Abp.Users.EntityFrameworkCore
-{
- public class LocalUserLookupService_Tests : LocalUserLookupService_Tests
- {
-
- }
-}
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo.Abp.Users.MongoDB.Tests.csproj b/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo.Abp.Users.MongoDB.Tests.csproj
deleted file mode 100644
index 06b92ffd34..0000000000
--- a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo.Abp.Users.MongoDB.Tests.csproj
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- netcoreapp2.2
- Volo.Abp.Users.MongoDB.Tests
- Volo.Abp.Users.MongoDB.Tests
- latest
- true
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/AbpUserRepository_Tests.cs b/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/AbpUserRepository_Tests.cs
deleted file mode 100644
index a54790410e..0000000000
--- a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/AbpUserRepository_Tests.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace Volo.Abp.Users.MongoDB
-{
- [Collection(MongoTestCollection.Name)]
- public class AbpUserRepository_Tests : AbpUserRepository_Tests
- {
-
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/AbpUsersMongoDbTestModule.cs b/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/AbpUsersMongoDbTestModule.cs
deleted file mode 100644
index 560d6287d7..0000000000
--- a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/AbpUsersMongoDbTestModule.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using Microsoft.Extensions.DependencyInjection;
-using Mongo2Go;
-using Volo.Abp.Data;
-using Volo.Abp.Modularity;
-
-namespace Volo.Abp.Users.MongoDB
-{
- [DependsOn(
- typeof(AbpUsersMongoDbModule),
- typeof(AbpUsersTestsSharedModule)
- )]
- public class AbpUsersMongoDbTestModule : AbpModule
- {
- private static readonly MongoDbRunner MongoDbRunner = MongoDbRunner.Start();
-
- public override void ConfigureServices(IServiceCollection services)
- {
- var connectionString = MongoDbFixture.ConnectionString.EnsureEndsWith('/') +
- "Db_" +
- Guid.NewGuid().ToString("N");
-
- Configure(options =>
- {
- options.ConnectionStrings.Default = connectionString;
- });
-
- services.AddAssemblyOf();
- }
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/ExternalUserLookupService_Tests.cs b/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/ExternalUserLookupService_Tests.cs
deleted file mode 100644
index 764cadedf4..0000000000
--- a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/ExternalUserLookupService_Tests.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace Volo.Abp.Users.MongoDB
-{
- [Collection(MongoTestCollection.Name)]
- public class ExternalUserLookupService_Tests : ExternalUserLookupService_Tests
- {
-
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/LocalUserLookupService_Tests.cs b/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/LocalUserLookupService_Tests.cs
deleted file mode 100644
index b52af21d3e..0000000000
--- a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/LocalUserLookupService_Tests.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace Volo.Abp.Users.MongoDB
-{
- [Collection(MongoTestCollection.Name)]
- public class LocalUserLookupService_Tests : LocalUserLookupService_Tests
- {
-
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/MongoDbFixture.cs b/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/MongoDbFixture.cs
deleted file mode 100644
index 4f8c6eea2f..0000000000
--- a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/MongoDbFixture.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using Mongo2Go;
-
-namespace Volo.Abp.Users.MongoDB
-{
- public class MongoDbFixture : IDisposable
- {
- private static readonly MongoDbRunner MongoDbRunner;
- public static readonly string ConnectionString;
-
- static MongoDbFixture()
- {
- MongoDbRunner = MongoDbRunner.Start();
- ConnectionString = MongoDbRunner.ConnectionString;
- }
-
- public void Dispose()
- {
- MongoDbRunner?.Dispose();
- }
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/MongoTestCollection.cs b/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/MongoTestCollection.cs
deleted file mode 100644
index d8b6a718d8..0000000000
--- a/modules/users/test/Volo.Abp.Users.MongoDB.Tests/Volo/Abp/Users/MongoDB/MongoTestCollection.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using Xunit;
-
-namespace Volo.Abp.Users.MongoDB
-{
- [CollectionDefinition(Name)]
- public class MongoTestCollection : ICollectionFixture
- {
- public const string Name = "MongoDB Collection";
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo.Abp.Users.Tests.Shared.csproj b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo.Abp.Users.Tests.Shared.csproj
deleted file mode 100644
index ececb4eddd..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo.Abp.Users.Tests.Shared.csproj
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
- netcoreapp2.2
- Volo.Abp.Users.Tests.Shared
- Volo.Abp.Users.Tests.Shared
- latest
- true
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo.Abp.Users.Tests.Shared.csproj.DotSettings b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo.Abp.Users.Tests.Shared.csproj.DotSettings
deleted file mode 100644
index 58ad6c8854..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo.Abp.Users.Tests.Shared.csproj.DotSettings
+++ /dev/null
@@ -1,2 +0,0 @@
-
- CSharp71
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUserRepository_Tests.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUserRepository_Tests.cs
deleted file mode 100644
index 40d8de9572..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUserRepository_Tests.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using System;
-using System.Linq;
-using System.Threading.Tasks;
-using Shouldly;
-using Volo.Abp.Modularity;
-using Xunit;
-
-namespace Volo.Abp.Users
-{
- public abstract class AbpUserRepository_Tests : AbpUsersTestBase
- where TStartupModule : IAbpModule
- {
- private readonly AbpUsersLocalTestData _localTestData;
- private readonly IAbpUserRepository _userRepository;
-
- protected AbpUserRepository_Tests()
- {
- _userRepository = GetRequiredService();
- _localTestData = GetRequiredService();
- }
-
- [Fact]
- public async Task FindAsync()
- {
- var john = await _userRepository.FindAsync(_localTestData.John.Id);
- john.ShouldNotBeNull();
- john.UserName.ShouldBe(_localTestData.John.UserName);
-
- //Undefined user
- (await _userRepository.FindAsync(Guid.NewGuid())).ShouldBeNull();
- }
-
- [Fact]
- public async Task FindByUserNameAsync()
- {
- var john = await _userRepository.FindByUserNameAsync(_localTestData.John.UserName);
- john.ShouldNotBeNull();
- john.Id.ShouldBe(_localTestData.John.Id);
-
- //Undefined user
- (await _userRepository.FindByUserNameAsync("undefined-user")).ShouldBeNull();
- }
-
- [Fact]
- public async Task GetListAsync()
- {
- (await _userRepository.GetListAsync(new Guid[0])).Any().ShouldBeFalse();
- (await _userRepository.GetListAsync(new[] { _localTestData.John.Id })).Count.ShouldBe(1);
- (await _userRepository.GetListAsync(new[] { _localTestData.John.Id, _localTestData.David.Id })).Count.ShouldBe(2);
- (await _userRepository.GetListAsync(new[] { _localTestData.John.Id, _localTestData.David.Id, Guid.NewGuid() })).Count.ShouldBe(2);
- }
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersExternalTestData.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersExternalTestData.cs
deleted file mode 100644
index dba3c573de..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersExternalTestData.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Volo.Abp.DependencyInjection;
-
-namespace Volo.Abp.Users
-{
- public class AbpUsersExternalTestData : ISingletonDependency
- {
- public IAbpUserData David { get; }
- public IAbpUserData Neo { get; }
-
- public AbpUsersExternalTestData(AbpUsersLocalTestData localTestData)
- {
- Neo = new AbpUserData(Guid.NewGuid(), "neo");
- David = localTestData.David.ToAbpUserData();
- }
-
- public List GetAllUsers()
- {
- return new List
- {
- David,
- Neo
- };
- }
- }
-}
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersLocalTestData.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersLocalTestData.cs
deleted file mode 100644
index 2382a3f93e..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersLocalTestData.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using Volo.Abp.DependencyInjection;
-
-namespace Volo.Abp.Users
-{
- public class AbpUsersLocalTestData : ISingletonDependency
- {
- public AbpUser John { get; }
- public AbpUser David { get; }
-
- public AbpUsersLocalTestData()
- {
- John = new AbpUser(Guid.NewGuid(), "john");
- David = new AbpUser(Guid.NewGuid(), "david", "david@abp.io");
- }
- }
-}
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestBase.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestBase.cs
deleted file mode 100644
index e36f485a70..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestBase.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using Volo.Abp.Modularity;
-using Volo.Abp.Testing;
-
-namespace Volo.Abp.Users
-{
- public abstract class AbpUsersTestBase : AbpIntegratedTest
- where TStartupModule : IAbpModule
- {
- protected override void SetAbpApplicationCreationOptions(AbpApplicationCreationOptions options)
- {
- options.UseAutofac();
- }
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestDataBuilder.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestDataBuilder.cs
deleted file mode 100644
index a3602491be..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestDataBuilder.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using Volo.Abp.DependencyInjection;
-
-namespace Volo.Abp.Users
-{
- public class AbpUsersTestDataBuilder : ITransientDependency
- {
- private readonly IAbpUserRepository _userRepository;
- private readonly AbpUsersLocalTestData _localTestData;
-
- public AbpUsersTestDataBuilder(
- IAbpUserRepository userRepository,
- AbpUsersLocalTestData localTestData)
- {
- _userRepository = userRepository;
- _localTestData = localTestData;
- }
-
- public void Build()
- {
- AddUsers();
- }
-
- private void AddUsers()
- {
- _userRepository.Insert(_localTestData.John);
- _userRepository.Insert(_localTestData.David);
- }
- }
-}
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestsSharedModule.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestsSharedModule.cs
deleted file mode 100644
index 50da79183d..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/AbpUsersTestsSharedModule.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using Microsoft.Extensions.DependencyInjection;
-using Volo.Abp.Autofac;
-using Volo.Abp.Modularity;
-
-namespace Volo.Abp.Users
-{
- [DependsOn(
- typeof(AbpUsersDomainModule),
- typeof(AbpTestBaseModule),
- typeof(AbpAutofacModule)
- )]
- public class AbpUsersTestsSharedModule : AbpModule
- {
- public override void ConfigureServices(IServiceCollection services)
- {
- services.AddAssemblyOf();
- }
-
- public override void OnApplicationInitialization(ApplicationInitializationContext context)
- {
- SeedTestData(context);
- }
-
- private static void SeedTestData(ApplicationInitializationContext context)
- {
- using (var scope = context.ServiceProvider.CreateScope())
- {
- scope.ServiceProvider
- .GetRequiredService()
- .Build();
- }
- }
- }
-}
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/ExternalUserLookupService_Tests.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/ExternalUserLookupService_Tests.cs
deleted file mode 100644
index 8916607ea7..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/ExternalUserLookupService_Tests.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using System;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Extensions.DependencyInjection;
-using Shouldly;
-using Volo.Abp.Modularity;
-using Xunit;
-
-namespace Volo.Abp.Users
-{
- public abstract class ExternalUserLookupService_Tests : AbpUsersTestBase
- where TStartupModule : IAbpModule
- {
- private readonly IAbpUserLookupService _lookupService;
- private readonly AbpUsersLocalTestData _localTestData;
- private readonly AbpUsersExternalTestData _externalTestData;
-
- protected ExternalUserLookupService_Tests()
- {
- _lookupService = GetRequiredService();
- _localTestData = GetRequiredService();
- _externalTestData = GetRequiredService();
- }
-
- protected override void AfterAddApplication(IServiceCollection services)
- {
- services.AddTransient();
- }
-
- [Fact]
- public async Task FindByUserNameAsync()
- {
- (await GetRequiredService().FindByUserNameAsync(_localTestData.John.UserName)).ShouldNotBeNull();
-
- (await _lookupService.FindByUserNameAsync("undefined-user")).ShouldBeNull();
- (await _lookupService.FindByUserNameAsync(_localTestData.John.UserName)).ShouldBeNull(); //Because it's not available in the external provider. And this will delete the user!
- (await _lookupService.FindByUserNameAsync(_localTestData.David.UserName)).ShouldNotBeNull();
- (await _lookupService.FindByUserNameAsync(_externalTestData.Neo.UserName)).ShouldNotBeNull();
-
- (await GetRequiredService().FindByUserNameAsync(_localTestData.John.UserName)).ShouldBeNull();
- }
-
- [Fact]
- public async Task FindByIdAsync()
- {
- (await GetRequiredService().FindAsync(_localTestData.John.Id)).ShouldNotBeNull();
-
- (await _lookupService.FindByIdAsync(Guid.NewGuid())).ShouldBeNull();
- (await _lookupService.FindByIdAsync(_localTestData.John.Id)).ShouldBeNull(); //Because it's not available in the external provider. And this will delete the user!
- (await _lookupService.FindByIdAsync(_localTestData.David.Id)).ShouldNotBeNull();
- (await _lookupService.FindByIdAsync(_externalTestData.Neo.Id)).ShouldNotBeNull();
-
- (await GetRequiredService().FindAsync(_localTestData.John.Id)).ShouldBeNull();
- }
-
- public class TestExternalAbpUserLookupServiceProvider : IExternalAbpUserLookupServiceProvider
- {
- private readonly AbpUsersExternalTestData _externalTestData;
-
- public TestExternalAbpUserLookupServiceProvider(AbpUsersExternalTestData externalTestData)
- {
- _externalTestData = externalTestData;
- }
-
- public Task FindByIdAsync(Guid id, CancellationToken cancellationToken = default)
- {
- return Task.FromResult(_externalTestData.GetAllUsers().FirstOrDefault(u => u.Id == id));
- }
-
- public Task FindByUserNameAsync(string userName, CancellationToken cancellationToken = default)
- {
- return Task.FromResult(_externalTestData.GetAllUsers().FirstOrDefault(u => u.UserName == userName));
- }
- }
- }
-}
\ No newline at end of file
diff --git a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/LocalUserLookupService_Tests.cs b/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/LocalUserLookupService_Tests.cs
deleted file mode 100644
index 9e128f14cc..0000000000
--- a/modules/users/test/Volo.Abp.Users.Tests.Shared/Volo/Abp/Users/LocalUserLookupService_Tests.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System.Threading.Tasks;
-using Shouldly;
-using Volo.Abp.Modularity;
-using Xunit;
-
-namespace Volo.Abp.Users
-{
- public abstract class LocalUserLookupService_Tests : AbpUsersTestBase
- where TStartupModule : IAbpModule
- {
- private readonly IAbpUserLookupService _lookupService;
- private readonly AbpUsersLocalTestData _localTestData;
-
- protected LocalUserLookupService_Tests()
- {
- _lookupService = GetRequiredService();
- _localTestData = GetRequiredService();
- }
-
- [Fact]
- public async Task FindByUserNameAsync()
- {
- (await _lookupService.FindByUserNameAsync(_localTestData.John.UserName)).ShouldNotBeNull();
- (await _lookupService.FindByUserNameAsync(_localTestData.David.UserName)).ShouldNotBeNull();
- (await _lookupService.FindByUserNameAsync("undefined-user")).ShouldBeNull();
- }
- }
-}