public CategorieRepositoryTest()
        {
            var dbOptions = new DbContextOptionsBuilder <NetCoreAppContext>()
                            .UseInMemoryDatabase(databaseName: "TestNetCoreAppCategorie")
                            .Options;

            _dbContext           = new NetCoreAppContext(dbOptions);
            _categorieRepository = new CategorieRepository(_dbContext);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public EfRepository(NetCoreAppContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #4
0
 public ArticleRepository(NetCoreAppContext dbContext)
     : base(dbContext)
 {
 }
 public CategorieRepository(NetCoreAppContext dbContext)
     : base(dbContext)
 {
 }