Exemple #1
0
    public FeaturesServiceTests()
    {
        var optionsBuilder = new DbContextOptionsBuilder <FeatureManagementDb>();

        optionsBuilder.UseInMemoryDatabase("FeatureManagement");

        _db = new FeatureManagementDb(optionsBuilder.Options);

        // Delete existing db before creating a new one
        _db.Database.EnsureDeleted();
        _db.Database.EnsureCreated();
    }
Exemple #2
0
 public FeaturesService(FeatureManagementDb featureManagementDb, Settings settings)
 {
     _featureManagementDb = featureManagementDb;
     _settings            = settings;
 }