/// <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); }
/// <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); }