예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExcelDataLayerTest"/> class.
        /// </summary>
        public ExcelDataLayerTest()
        {
            ExcelConnection          connection = new ExcelConnection();
            AdoExcelDataLayerFactory factory    = new AdoExcelDataLayerFactory(connection);

            _context = new ExcelContext(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);
        }