Browse Source

Update OpenIddictMongoDbTestModule.cs

pull/16390/head
maliming 3 years ago
parent
commit
77c43659e4
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 5
      modules/openiddict/test/Volo.Abp.OpenIddict.MongoDB.Tests/Volo/Abp/OpenIddict/MongoDB/OpenIddictMongoDbTestModule.cs

5
modules/openiddict/test/Volo.Abp.OpenIddict.MongoDB.Tests/Volo/Abp/OpenIddict/MongoDB/OpenIddictMongoDbTestModule.cs

@ -17,12 +17,13 @@ namespace Volo.Abp.OpenIddict.MongoDB;
public class OpenIddictMongoDbTestModule : AbpModule
{
private static string _connectionString;
public override void ConfigureServices(ServiceConfigurationContext context)
{
_connectionString = MongoDbFixture.GetRandomConnectionString();
Configure<AbpDbConnectionOptions>(options =>
{
options.ConnectionStrings.Default = MongoDbFixture.GetRandomConnectionString();
options.ConnectionStrings.Default = _connectionString;
});
}

Loading…
Cancel
Save