public static SpiderDbContext Create() { var options = new DbContextOptionsBuilder <SpiderDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; var context = new SpiderDbContext(options); context.Database.EnsureCreated(); return(context); }
public GetApplicationListQueryHandler(SpiderDbContext context) { _context = context; }
public UpdateEnvironmentCommandHandler(SpiderDbContext context) { _context = context; }
public GetConfigurationQueryHandler(SpiderDbContext context) { _context = context; }
public static void Destroy(SpiderDbContext context) { context.Database.EnsureDeleted(); context.Dispose(); }
private TaskExutor() { spiderDbContext = new SpiderDbContext(); SpiderTaskDelegate = new Dictionary <string, Func <SpiderLog, IWebDriver, Task> >(); }
public UpdateApplicationCommandHandler(SpiderDbContext context) { _context = context; }
public CreateEnvironmentsCommandHandler(SpiderDbContext spiderDbContext) { _spiderDbContext = spiderDbContext; }
public CreateConfigurationCommandHandler(SpiderDbContext spiderDbContext) { _spiderDbContext = spiderDbContext; }
public GetEnvironmentConfigurationsQueryHandler(SpiderDbContext context) { _context = context; }
public UpdateConfigurationCommandHandler(SpiderDbContext context) { _context = context; }
public GetApplicationEnvironmentsQueryHandler(SpiderDbContext context) { _context = context; }
public GetApplicationsDetailQueryHandler(SpiderDbContext dbContext) { _dbContext = dbContext; }
public GetEnvironmentQueryHandler(SpiderDbContext spiderDbContext) { _spiderDbContext = spiderDbContext; }