public IDataBusStorage Create() { var consoleLoggerFactory = new ConsoleLoggerFactory(false); var connectionProvider = new DbConnectionProvider(SqlTestHelper.ConnectionString, consoleLoggerFactory); var sqlServerDataBusStorage = new SqlServerDataBusStorage(connectionProvider, "databus", true, consoleLoggerFactory); sqlServerDataBusStorage.Initialize(); return sqlServerDataBusStorage; }
protected override void SetUp() { var loggerFactory = new ConsoleLoggerFactory(false); var connectionProvider = new DbConnectionProvider(SqlTestHelper.ConnectionString, loggerFactory); var tableName = TestConfig.QueueName("data"); SqlTestHelper.DropTable(tableName); _storage = new SqlServerDataBusStorage(connectionProvider, tableName, true, loggerFactory); _storage.Initialize(); }