Beispiel #1
0
        public void CleanUp()
        {
            _disposables.ForEach(d => d.Dispose());
            _disposables.Clear();

            OracleTestHelper.DropTableAndSequence(_tableName);
            OracleTestHelper.DropProcedure("rebus_dequeue_" + _tableName);
        }
        protected override void SetUp()
        {
            OracleTestHelper.DropTableAndSequence(_tableName);
            var consoleLoggerFactory = new ConsoleLoggerFactory(false);
            var asyncTaskFactory     = new TplAsyncTaskFactory(consoleLoggerFactory);
            var connectionHelper     = new OracleConnectionHelper(OracleTestHelper.ConnectionString);

            _transport = new OracleTransport(connectionHelper, _tableName, QueueName, consoleLoggerFactory, asyncTaskFactory);
            _transport.EnsureTableIsCreated();

            Using(_transport);

            _transport.Initialize();
            _cancellationToken = new CancellationTokenSource().Token;
        }
        protected override void SetUp()
        {
            OracleTestHelper.DropTableAndSequence(TableName);

            _adapter = Using(new BuiltinHandlerActivator());

            Configure.With(_adapter)
            .Logging(l => l.ColoredConsole(LogLevel.Warn))
            .Transport(t => t.UseOracle(OracleTestHelper.ConnectionString, TableName, QueueName))
            .Options(o =>
            {
                o.SetNumberOfWorkers(0);
                o.SetMaxParallelism(20);
            })
            .Start();
        }
Beispiel #4
0
 protected override void TearDown()
 {
     OracleTestHelper.DropTableAndSequence(TableName);
     OracleTestHelper.DropProcedure("rebus_dequeue_" + TableName);
 }
Beispiel #5
0
 public OracleSagaStorageFactory()
 {
     OracleTestHelper.DropTableAndSequence("saga_index");
     OracleTestHelper.DropTableAndSequence("saga_data");
 }
 public OracleSnapshotStorageFactory()
 {
     OracleTestHelper.DropTableAndSequence(TableName);
 }
 public void Cleanup()
 {
     OracleTestHelper.DropTableAndSequence("timeouts");
 }
Beispiel #8
0
 public OracleTimeoutManagerFactory()
 {
     OracleTestHelper.DropTableAndSequence("timeouts");
 }
 static void DropTables()
 {
     OracleTestHelper.DropTableAndSequence("transports");
 }
Beispiel #10
0
 public void Cleanup()
 {
     OracleTestHelper.DropTableAndSequence("subscriptions");
 }
 protected override void TearDown()
 {
     OracleTestHelper.DropTableAndSequence("transports");
     OracleTestHelper.DropProcedure("rebus_dequeue_transports");
 }
Beispiel #12
0
 protected override void SetUp() => OracleTestHelper.DropTableAndSequence(TableName);