Example #1
0
        public FactureRepositoryTests()
        {
            _dbContextFactory = new ApplicationDbContextFactory();

            var dbContext = _dbContextFactory.Create();

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

            var dbContext = _dbContextFactory.Create();

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