Пример #1
0
 public QueryConnectHelper(
     IArchitectureDetector architectureDetector,
     IConnectionStringHelper connectionStringHelper,
     IDataChecker dataChecker,
     IDbConnectionFactory dbConnectionFactory,
     IExcelWriter excelWriter,
     ILog log,
     IRelationshipsDataChecker relationshipsDataChecker,
     ISharpCloudApiFactory sharpCloudApiFactory)
 {
     _architectureDetector   = architectureDetector;
     _connectionStringHelper = connectionStringHelper;
     _dataChecker            = dataChecker;
     _dbConnectionFactory    = dbConnectionFactory;
     _excelWriter            = excelWriter;
     _logger = log;
     _relationshipsDataChecker = relationshipsDataChecker;
     _sharpCloudApiFactory     = sharpCloudApiFactory;
 }
Пример #2
0
 private QueryConnectHelper CreateQueryConnectHelper(
     IArchitectureDetector architectureDetector     = null,
     IConnectionStringHelper connectionStringHelper = null,
     IDataChecker dataChecker = null,
     IDbConnectionFactory dbConnectionFactory = null,
     IExcelWriter excelWriter = null,
     ILog log = null,
     IRelationshipsDataChecker relationshipsDataChecker = null,
     ISharpCloudApiFactory sharpCloudApiFactory         = null)
 {
     return(new QueryConnectHelper(
                architectureDetector ?? Mock.Of <IArchitectureDetector>(),
                connectionStringHelper ?? Mock.Of <IConnectionStringHelper>(),
                dataChecker ?? Mock.Of <IDataChecker>(),
                dbConnectionFactory ?? Mock.Of <IDbConnectionFactory>(),
                excelWriter ?? Mock.Of <IExcelWriter>(),
                log ?? Mock.Of <ILog>(),
                relationshipsDataChecker ?? Mock.Of <IRelationshipsDataChecker>(),
                sharpCloudApiFactory ?? Mock.Of <ISharpCloudApiFactory>()));
 }