public static void Main(string[] args) { var dbContextFactory = new ApplicationDbContextFactory(); var dbContext = dbContextFactory.Create(new DbContextFactoryOptions()); var companiesRepositories = new ArtisteEntityFrameworkRepository <Entity>(dbContext); }
public TableGroupTest() { _dbContextFactory = new ApplicationDbContextFactory(); var dbContext = _dbContextFactory.Create(); ClearAllTables(dbContext); _groupeRepository = new ArtisteEntityFrameworkRepository <Groupe>(dbContext); }