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(); }
public FeaturesService(FeatureManagementDb featureManagementDb, Settings settings) { _featureManagementDb = featureManagementDb; _settings = settings; }