Exemple #1
0
        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.ConsumerHeartbeat();

            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 enableChaos)
        {
            var queueName = GenerateQueueName.Create();
            var consumer  = new DotNetWorkQueue.IntegrationTests.Shared.Consumer.Implementation.ConsumerHeartbeat();

            consumer.Run <SqlServerMessageQueueInit, FakeMessage, SqlServerMessageQueueCreation>(new QueueConnection(queueName, ConnectionInfo.ConnectionString),
                                                                                                 messageCount, runtime, timeOut, workerCount, enableChaos, x => Helpers.SetOptions(x,
                                                                                                                                                                                   true, true, false,
                                                                                                                                                                                   false,
                                                                                                                                                                                   false, true, true, false),
                                                                                                 Helpers.GenerateData, Helpers.Verify, Helpers.VerifyQueueCount);
        }