예제 #1
0
        public static SpiderDbContext Create()
        {
            var options = new DbContextOptionsBuilder <SpiderDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;
            var context = new SpiderDbContext(options);

            context.Database.EnsureCreated();
            return(context);
        }
예제 #2
0
 public GetApplicationListQueryHandler(SpiderDbContext context)
 {
     _context = context;
 }
 public UpdateEnvironmentCommandHandler(SpiderDbContext context)
 {
     _context = context;
 }
 public GetConfigurationQueryHandler(SpiderDbContext context)
 {
     _context = context;
 }
예제 #5
0
 public static void Destroy(SpiderDbContext context)
 {
     context.Database.EnsureDeleted();
     context.Dispose();
 }
예제 #6
0
 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;
 }
예제 #10
0
 public GetEnvironmentConfigurationsQueryHandler(SpiderDbContext context)
 {
     _context = context;
 }
예제 #11
0
 public UpdateConfigurationCommandHandler(SpiderDbContext context)
 {
     _context = context;
 }
예제 #12
0
 public GetApplicationEnvironmentsQueryHandler(SpiderDbContext context)
 {
     _context = context;
 }
 public GetApplicationsDetailQueryHandler(SpiderDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #14
0
 public GetEnvironmentQueryHandler(SpiderDbContext spiderDbContext)
 {
     _spiderDbContext = spiderDbContext;
 }