public CategorieRepositoryTest() { var dbOptions = new DbContextOptionsBuilder <NetCoreAppContext>() .UseInMemoryDatabase(databaseName: "TestNetCoreAppCategorie") .Options; _dbContext = new NetCoreAppContext(dbOptions); _categorieRepository = new CategorieRepository(_dbContext); }
public EFRepositoryTest() { var dbOptions = new DbContextOptionsBuilder <NetCoreAppContext>() .UseInMemoryDatabase(databaseName: "TestNetCoreAppEF") .Options; _dbContext = new NetCoreAppContext(dbOptions); _categorieRepository = new CategorieRepository(_dbContext); _categories = new List <Categorie>(); for (int i = 1; i <= NOMBRE_INSERTION; i++) { _categorie = new Categorie(i, "Teeshirt " + i); _categories.Add(_categorie); } }
public EfRepository(NetCoreAppContext dbContext) { _dbContext = dbContext; }
public ArticleRepository(NetCoreAppContext dbContext) : base(dbContext) { }
public CategorieRepository(NetCoreAppContext dbContext) : base(dbContext) { }