public SimpleIntegrationTest() { var serviceProvider = new ServiceCollection() .AddEntityFrameworkSqlServer() .BuildServiceProvider(); var builder = new DbContextOptionsBuilder <MonsterContext>(); builder.UseInMemoryDatabase(databaseName: "Monster_InMemory_DB"); _context = new MonsterContext(builder.Options); //_context.Database.Migrate(); }
public ScaryMonstersQuery(MonsterContext context) { _context = context; }