예제 #1
0
        public void Establish()
        {
            _queueListener = new TestAWSQueueListener(new AnonymousAWSCredentials(), queueUrl);
            _message       = new Message(header: new MessageHeader(Guid.NewGuid(), "TestSqsTopic", MessageType.MT_COMMAND), body: new MessageBody("test content"));

            var credentials = new AnonymousAWSCredentials();

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

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

            var credentials = new AnonymousAWSCredentials();

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