public PostgreSqlTaskQueueConsumerTests()
        {
            mConsumerOptions = TestOptions
                               .GetDefaultTaskQueueConsumerOptions(ConnectionString);

            mDataSource = new PostgreSqlTaskQueueDataSource(mConsumerOptions.ConnectionOptions.ConnectionString,
                                                            TestOptions.DefaultMapping,
                                                            queueFaultErrorThrehsoldCount: 5);
        }
        public PostgreSqlTaskQueueOperationsConsistencyTests()
        {
            mInfoOptions = TestOptions
                           .GetDefaultTaskQueueInfoOptions(ConnectionString);
            mConsumerOptions = TestOptions
                               .GetDefaultTaskQueueConsumerOptions(ConnectionString);
            mProducerOptions = TestOptions
                               .GetDefaultTaskQueueProducerAndResultOptions(ConnectionString);

            mDataSource = new PostgreSqlTaskQueueDataSource(mInfoOptions.ConnectionOptions.ConnectionString,
                                                            TestOptions.DefaultMapping,
                                                            queueFaultErrorThrehsoldCount: 5);
        }
Exemplo n.º 3
0
        public WorkingTests()
        {
            mTimestampProvider = new UtcNowTimestampProvider();

            mTaskProcessingOptions = TestOptions
                                     .GetDefaultTaskProcessingOptions();

            mProducerAndResultOptions = TestOptions
                                        .GetDefaultTaskQueueProducerAndResultOptions(CommonConnectionString);

            mTaskQueueConsumerOptions = TestOptions
                                        .GetDefaultTaskQueueConsumerOptions(BaseConsumerConnectionString);

            mPostgreSqlExecutionPerformanceMonitorWriterOptions = TestOptions
                                                                  .GetDefaultPostgreSqlExecutionPerformanceMonitorWriterOptions(CommonConnectionString);

            mOperations = new PostgreSqlTaskQueueDbOperations(CommonConnectionString,
                                                              TestOptions.DefaultMapping);
        }