private static IServiceScope GetScope(string dbName) { var services = DBContextInitializer.RegisterDBContext(dbName); services.AddRKEFStorages(); return(services.BuildServiceProvider().CreateScope()); }
private static IServiceProvider CreateServiceProvider() { var services = DBContextInitializer.RegisterDBContext(nameof(DITests)); services.AddRKEFStorages(); return(services.BuildServiceProvider()); }