protected override void SetUp() { AmazonSqsManyMessagesTransportFactory.PurgeQueue(QueueName); _activator = new BuiltinHandlerActivator(); Using(_activator); }
protected override void SetUp() { var connectionInfo = AmazonSqsTransportFactory.ConnectionInfo; var accessKeyId = connectionInfo.AccessKeyId; var secretAccessKey = connectionInfo.SecretAccessKey; var amazonSqsConfig = new AmazonSQSConfig { RegionEndpoint = RegionEndpoint.GetBySystemName(AmazonSqsTransportFactory.ConnectionInfo.RegionEndpoint) }; var queueName = TestConfig.GetName("defertest"); AmazonSqsManyMessagesTransportFactory.PurgeQueue(queueName); _activator = Using(new BuiltinHandlerActivator()); _configurer = Configure.With(_activator) .Transport(t => t.UseAmazonSqs(accessKeyId, secretAccessKey, amazonSqsConfig, queueName)) .Options(o => o.LogPipeline()); }