protected ScopedDbContextTestBase() { this.options = MockDbContext.ConfigureInMemoryContextOptions(); this.Scope = this.ServiceProvider .GetRequiredService <IServiceScopeFactory>() .CreateScope(); this.Context = this.ResolveScoped <MockDbContext>(); }
public DbSetLinqTest() { this.options = MockDbContext.ConfigureInMemoryContextOptions(); this.context = new MockDbContext(this.options); }