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();
        }
Exemple #2
0
 public ScaryMonstersQuery(MonsterContext context)
 {
     _context = context;
 }