Ejemplo n.º 1
0
        private static IServiceScope GetScope(string dbName)
        {
            var services = DBContextInitializer.RegisterDBContext(dbName);

            services.AddRKEFStorages();
            return(services.BuildServiceProvider().CreateScope());
        }
Ejemplo n.º 2
0
        private static IServiceProvider CreateServiceProvider()
        {
            var services = DBContextInitializer.RegisterDBContext(nameof(DITests));

            services.AddRKEFStorages();

            return(services.BuildServiceProvider());
        }