Esempio n. 1
0
        public FactureRepositoryTests()
        {
            _dbContextFactory = new ApplicationDbContextFactory();

            var dbContext = _dbContextFactory.Create();

            ClearAllTables(dbContext);
            _factureRepository = new ClientEntityFrameworkRepository <Facture>(dbContext);
        }
Esempio n. 2
0
        public TableContratTest()
        {
            _dbContextFactory = new ApplicationDbContextFactory();

            var dbContext = _dbContextFactory.Create();

            ClearAllTables(dbContext);
            _contratRepository = new ClientEntityFrameworkRepository <Contrat>(dbContext);
        }