protected ScopedDbContextTestBase()
 {
     this.options = MockDbContext.ConfigureInMemoryContextOptions();
     this.Scope   = this.ServiceProvider
                    .GetRequiredService <IServiceScopeFactory>()
                    .CreateScope();
     this.Context = this.ResolveScoped <MockDbContext>();
 }
Exemplo n.º 2
0
        public DbSetLinqTest()
        {
            this.options = MockDbContext.ConfigureInMemoryContextOptions();

            this.context = new MockDbContext(this.options);
        }