using System; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.Modularity; namespace Volo.Abp.Identity { [DependsOn(typeof(AbpIdentityModule), typeof(AbpIdentityEntityFrameworkCoreModule))] public class AbpIdentityTestModule : AbpModule { public override void ConfigureServices(IServiceCollection services) { services.AddEntityFrameworkInMemoryDatabase(); services.Configure(options => { options.ConnectionStrings.Default = Guid.NewGuid().ToString(); }); services.Configure(options => { options.Configure(context => { context.DbContextOptions.UseInMemoryDatabase(context.ConnectionString); }); }); } } }