Browse Source
Update OpenIddictMongoDbTestModule.cs
pull/16390/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
3 additions and
2 deletions
-
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; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|