public SqsMessageProeducerSendTests()
        {
            _queueListener = new TestAWSQueueListener(new AnonymousAWSCredentials(), _queueUrl);
            _message       = new Message(new MessageHeader(Guid.NewGuid(), "TestSqsTopic", MessageType.MT_COMMAND), new MessageBody("test content"));

            var credentials = new AnonymousAWSCredentials();

            _messageProducer = new SqsMessageProducer(credentials);
        }
예제 #2
0
        public SqsMessageProducerRequeueTests()
        {
            var messageHeader = new MessageHeader(Guid.NewGuid(), "TestSqsTopic", MessageType.MT_COMMAND);

            messageHeader.UpdateHandledCount();
            _sentMessage = new Message(messageHeader, new MessageBody("test content"));

            var credentials = new AnonymousAWSCredentials();

            _sender            = new SqsMessageProducer(credentials);
            _receiver          = new SqsMessageConsumer(credentials, _queueUrl);
            _testQueueListener = new TestAWSQueueListener(credentials, _queueUrl);
        }