public virtual async Task InitializeAsync() { Given(); SystemUnderTest = CreateSystemUnderTest(); await WhenAsync().ConfigureAwait(false); }
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); }
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); }