Exemplo n.º 1
0
        public static TContext CreateContext <TContext>(out ExampleContext secondaryContext, bool seed = false, IUserInformationProvider currentUserProvider = null, ITestOutputHelper outputHelper = null, bool withTempTables = true) where TContext : ExampleContext
        {
            var sp = CreateServiceProvider <TContext>(currentUserProvider, outputHelper, withTempTables, seed);

            secondaryContext = sp.CreateScope().ServiceProvider.GetRequiredService <TContext>();
            return(sp.CreateScope().ServiceProvider.GetRequiredService <TContext>());
        }
Exemplo n.º 2
0
 public static ExampleContext CreateContext(out ExampleContext secondaryContext, bool seed = false, IUserInformationProvider currentUserProvider = null, ITestOutputHelper outputHelper = null, bool withTempTables = true)
 => CreateContext <ExampleContext>(out secondaryContext, seed, currentUserProvider, outputHelper, withTempTables);