Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DataBaseCrudTest" /> class.
        /// </summary>
        public LinqToSqlDataBaseCrudTest()
        {
            DbSqlConnection connection = new DbSqlConnection();
            var             factory    = new LinqToSqlDataLayerFactory(connection);

            _context = new DbContext(factory);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExcelReportsTest" /> class.
        /// </summary>
        public ExcelReportsTest()
        {
            DbSqlConnection           connection      = new DbSqlConnection();
            ExcelConnection           excelConnection = new ExcelConnection();
            LinqToSqlDataLayerFactory factory         = new LinqToSqlDataLayerFactory(connection);
            AdoExcelDataLayerFactory  excelFactory    = new AdoExcelDataLayerFactory(excelConnection);

            _dbContext    = new DbContext(factory);
            _excelContext = new ExcelContext(excelFactory);
        }