Пример #1
0
        public static TogglesContext GetTogglesContext(string testName)
        {
            var options = new DbContextOptionsBuilder <TogglesContext>()
                          .UseInMemoryDatabase(databaseName: testName)
                          .Options;
            var context = new TogglesContext(options);

            return(context);
        }
Пример #2
0
 public void BeforeTest()
 {
     _context = Fixture.GetTogglesContext(TestContext.TestName);
 }
Пример #3
0
 public ConvertDbController(TogglesContext db, IRepository <Application> applicationsRepository)
 {
     _db = db;
     _applicationsRepository = applicationsRepository;
 }
Пример #4
0
 public CacheRefreshController(TogglesContext db, IConfiguration configuration, IServiceProvider serviceProvider)
 {
     _db            = db;
     _configuration = configuration;
     _bus           = (IBus)serviceProvider.GetService(typeof(IBus));
 }
 public FeatureToggleDeployStatusConsumer(TogglesContext db)
 {
     _db = db;
 }
Пример #6
0
 public ApplicationsController(TogglesContext db)
 {
     _db = db;
 }
Пример #7
0
 public FeatureTogglesController(TogglesContext db)
 {
     _db = db;
 }