public void Run(int messageCount, int runtime, int timeOut, int workerCount, ConnectionInfoTypes type) { var queueName = GenerateQueueName.Create(); var connectionString = new ConnectionInfo(type).ConnectionString; var consumer = new DotNetWorkQueue.IntegrationTests.Shared.Consumer.Implementation.ConsumerRollBack(); consumer.Run <RedisQueueInit, FakeMessage, RedisQueueCreation>(new QueueConnection(queueName, connectionString), messageCount, runtime, timeOut, workerCount, false, x => { }, Helpers.GenerateData, Verify, VerifyQueueCount); }
public void Run(int messageCount, int runtime, int timeOut, int workerCount, bool useTransactions, bool enableChaos) { var queueName = GenerateQueueName.Create(); var consumer = new DotNetWorkQueue.IntegrationTests.Shared.Consumer.Implementation.ConsumerRollBack(); consumer.Run <PostgreSqlMessageQueueInit, FakeMessage, PostgreSqlMessageQueueCreation>(new QueueConnection(queueName, ConnectionInfo.ConnectionString), messageCount, runtime, timeOut, workerCount, enableChaos, x => Helpers.SetOptions(x, true, !useTransactions, useTransactions, false, false, !useTransactions, true, false), Helpers.GenerateData, Helpers.Verify, Helpers.VerifyQueueCount); }
public void Run(int messageCount, int runtime, int timeOut, int workerCount, bool inMemoryDb, bool enableChaos) { using (var connectionInfo = new IntegrationConnectionInfo(inMemoryDb)) { var queueName = GenerateQueueName.Create(); var consumer = new DotNetWorkQueue.IntegrationTests.Shared.Consumer.Implementation.ConsumerRollBack(); consumer.Run <SqLiteMessageQueueInit, FakeMessage, SqLiteMessageQueueCreation>(new QueueConnection(queueName, connectionInfo.ConnectionString), messageCount, runtime, timeOut, workerCount, enableChaos, x => Helpers.SetOptions(x, true, true, false, false, true, true, false), Helpers.GenerateData, Helpers.Verify, Helpers.VerifyQueueCount); } }