public static TogglesContext GetTogglesContext(string testName) { var options = new DbContextOptionsBuilder <TogglesContext>() .UseInMemoryDatabase(databaseName: testName) .Options; var context = new TogglesContext(options); return(context); }
public void BeforeTest() { _context = Fixture.GetTogglesContext(TestContext.TestName); }
public ConvertDbController(TogglesContext db, IRepository <Application> applicationsRepository) { _db = db; _applicationsRepository = applicationsRepository; }
public CacheRefreshController(TogglesContext db, IConfiguration configuration, IServiceProvider serviceProvider) { _db = db; _configuration = configuration; _bus = (IBus)serviceProvider.GetService(typeof(IBus)); }
public FeatureToggleDeployStatusConsumer(TogglesContext db) { _db = db; }
public ApplicationsController(TogglesContext db) { _db = db; }
public FeatureTogglesController(TogglesContext db) { _db = db; }