public void Run(int messageCount, int runtime, int timeOut, int readerCount, bool useTransactions, int count, bool enableChaos) { var queueName = GenerateQueueName.Create(); var consumer = new DotNetWorkQueue.IntegrationTests.Shared.UserDequeue.Implementation.UserDequeueTests(); consumer.Run <PostgreSqlMessageQueueInit, PostgreSqlMessageQueueCreation>(new QueueConnection(queueName, ConnectionInfo.ConnectionString), messageCount, runtime, timeOut, readerCount, count, enableChaos, x => Helpers.SetOptions(x, true, !useTransactions, useTransactions, false, false, !useTransactions, true, true, false, true), Helpers.GenerateDataWithColumnValue, Helpers.Verify, Helpers.VerifyQueueCount, SetQueueOptions); }
public void Run(int messageCount, int runtime, int timeOut, int readerCount, bool inMemoryDb, int valueCount, bool enableChaos) { using (var connectionInfo = new IntegrationConnectionInfo(inMemoryDb)) { var queueName = GenerateQueueName.Create(); var producer = new DotNetWorkQueue.IntegrationTests.Shared.UserDequeue.Implementation.UserDequeueTests(); producer.Run <SqLiteMessageQueueInit, SqLiteMessageQueueCreation>(new QueueConnection(queueName, connectionInfo.ConnectionString), messageCount, runtime, timeOut, readerCount, valueCount, enableChaos, x => Helpers.SetOptions(x, false, true, false, false, true, true, true, false, true), Helpers.GenerateDataWithColumnValue, Helpers.Verify, Helpers.VerifyQueueCount, SetQueueOptions); } }