示例#1
0
        public virtual async Task InitializeAsync()
        {
            Given();

            SystemUnderTest = CreateSystemUnderTest();

            await WhenAsync().ConfigureAwait(false);
        }
示例#2
0
        protected JustSaying.AwsTools.MessageHandling.SqsNotificationListener CreateSystemUnderTest()
        {
            var queue    = new SqsQueueByUrl(RegionEndpoint.EUWest1, new Uri(QueueUrl), Sqs);
            var listener = new JustSaying.AwsTools.MessageHandling.SqsNotificationListener(
                queue, SerializationRegister, Monitor, LoggerFactory,
                Substitute.For <IMessageContextAccessor>(),
                null, MessageLock);

            return(listener);
        }
示例#3
0
        private JustSaying.AwsTools.MessageHandling.SqsNotificationListener CreateSystemUnderTest()
        {
            var listener = new JustSaying.AwsTools.MessageHandling.SqsNotificationListener(
                new SqsQueueByUrl(RegionEndpoint.EUWest1, new Uri("http://foo.com"), _sqs),
                null,
                Substitute.For <IMessageMonitor>(),
                Substitute.For <ILoggerFactory>(),
                Substitute.For <IMessageContextAccessor>());

            return(listener);
        }