using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using System.Collections.Generic; using Xunit; namespace Bootstrap.Admin { [CollectionDefinition("MongoContext")] public class MongoContext : ICollectionFixture { } /// /// /// public class BAMongoDBWebHost : BALoginWebHost { protected override void ConfigureWebHost(IWebHostBuilder builder) { base.ConfigureWebHost(builder); builder.ConfigureAppConfiguration(app => app.AddInMemoryCollection(new KeyValuePair[] { new KeyValuePair("DB:0:Enabled", "false"), new KeyValuePair("DB:1:Enabled", "false"), new KeyValuePair("DB:2:Enabled", "false"), new KeyValuePair("DB:3:Enabled", "false"), new KeyValuePair("DB:4:Enabled", "true") })); } } }