Example #1
0
        private static IServiceScope GetScope(string dbName)
        {
            var services = DBContextInitializer.RegisterDBContext(dbName);

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

            services.AddRKEFStorages();

            return(services.BuildServiceProvider());
        }