Exemplo n.º 1
0
        public MutantContextFixture()
        {
            var builder = new DbContextOptionsBuilder <MutantContext>();

            builder.UseSqlServer(GetConnectionString());
            var options = builder.Options;

            Context = new MutantContext(options);
            Context.Database.EnsureDeleted();
            Context.Database.EnsureCreated();
        }
Exemplo n.º 2
0
 public StatsRepository(MutantContext context)
 {
     this._context = context;
 }
 public AdnsController(MutantContext context)
 {
     _context = context;
 }