public void Run(int messageCount, int runtime, int timeOut, int workerCount, int readerCount, int queueSize, int messageType, ConnectionInfoTypes type, LinqMethodTypes linqMethodTypes) { var queueName = GenerateQueueName.Create(); var connectionString = new ConnectionInfo(type).ConnectionString; var consumer = new DotNetWorkQueue.IntegrationTests.Shared.ConsumerMethodAsync.Implementation. SimpleMethodConsumerAsync(); consumer.Run <RedisQueueInit, RedisQueueCreation>(new QueueConnection(queueName, connectionString), messageCount, runtime, timeOut, workerCount, readerCount, queueSize, messageType, linqMethodTypes, false, x => { }, Helpers.GenerateData, Helpers.Verify, VerifyQueueCount); }
public void Run(int messageCount, int runtime, int timeOut, int workerCount, int readerCount, int queueSize, bool useTransactions, int messageType, LinqMethodTypes linqMethodTypes, bool enableChaos) { var queueName = GenerateQueueName.Create(); var consumer = new DotNetWorkQueue.IntegrationTests.Shared.ConsumerMethodAsync.Implementation. SimpleMethodConsumerAsync(); consumer.Run <PostgreSqlMessageQueueInit, PostgreSqlMessageQueueCreation>(new QueueConnection(queueName, ConnectionInfo.ConnectionString), messageCount, runtime, timeOut, workerCount, readerCount, queueSize, messageType, linqMethodTypes, enableChaos, x => Helpers.SetOptions(x, true, !useTransactions, useTransactions, false, false, !useTransactions, true, false), Helpers.GenerateData, Helpers.Verify, Helpers.VerifyQueueCount); }