示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DataBaseCrudTest"/> class.
        /// </summary>
        public DataBaseCrudTest()
        {
            DbSqlConnection connection           = new DbSqlConnection();
            AdoSqlServerDataLayerFactory factory = new AdoSqlServerDataLayerFactory(connection);

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

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