private void AndAPublisherToThePrimaryRegion(string primaryRegion) { _primaryPublisher = CreateMeABus .WithLogging(LoggerFactory) .InRegion(primaryRegion) .WithSnsMessagePublisher <SimpleMessage>(); }
private void AndAPublisherToTheSecondaryRegion(string secondaryRegion) { _secondaryPublisher = CreateMeABus .WithLogging(LoggerFactory) .InRegion(secondaryRegion) .WithSqsMessagePublisher <SimpleMessage>(cfg => cfg.QueueName = QueueName); }
protected override IMessagePublisher CreateSystemUnderTest() { Publisher = JustSaying.CreateMeABus.InRegion("eu-west-1") .WithSnsMessagePublisher <OrderPlaced>(); Publisher.StartListening(); return(Publisher); }
private void AndAPublisherToTheSecondaryRegion(string secondaryRegion) { _secondaryPublisher = CreateMeABus .WithLogging(new LoggerFactory()) .InRegion(secondaryRegion) .WithSqsMessagePublisher <GenericMessage>(configuration => { }); }
private void AndAPublisherToThePrimaryRegion(string primaryRegion) { _primaryPublisher = CreateMeABus .WithLogging(new LoggerFactory()) .InRegion(primaryRegion) .WithSnsMessagePublisher <GenericMessage>(); }
private void AndAPublisherWithAFailoverRegion() { _publisher = CreateMeABus .InRegion(PrimaryRegion) .WithFailoverRegion(SecondaryRegion) .WithActiveRegion(_getActiveRegion) .WithSnsMessagePublisher <GenericMessage>(); }
protected override IMessagePublisher CreateSystemUnderTest() { Publisher = CreateMeABus.WithLogging(new LoggerFactory()) .InRegion("eu-west-1") .WithSnsMessagePublisher <OrderPlaced>(); Publisher.StartListening(); return(Publisher); }
private void AndAPublisherWithAFailoverRegion() { _publisher = CreateMeABus .InRegion(PrimaryRegion) .WithFailoverRegion(SecondaryRegion) .WithActiveRegion(_getActiveRegion) .WithSnsMessagePublisher<GenericMessage>(); }
private void AndAPublisherWithAFailoverRegion() { _publisher = CreateMeABus .WithLogging(LoggerFactory) .InRegion(PrimaryRegion) .WithFailoverRegion(SecondaryRegion) .WithActiveRegion(_getActiveRegion) .WithSnsMessagePublisher <SimpleMessage>(); }
private void AndAPublisherWithAFailoverRegion() { _publisher = CreateMeABus .WithLogging(new LoggerFactory()) .InRegion(PrimaryRegion) .WithFailoverRegion(SecondaryRegion) .WithActiveRegion(_getActiveRegion) .WithSqsMessagePublisher <GenericMessage>(configuration => { }); }
private void AndAPublisherToTheSecondaryRegion(string secondaryRegion) { _secondaryPublisher = CreateMeABus .InRegion(secondaryRegion) .WithSqsMessagePublisher<GenericMessage>(configuration => { }); }
private void AndAPublisherToTheSecondaryRegion(string secondaryRegion) { _secondaryPublisher = CreateMeABus .InRegion(secondaryRegion) .WithSnsMessagePublisher <GenericMessage>(); }
private void AndAPublisherToThePrimaryRegion(string primaryRegion) { _primaryPublisher = CreateMeABus .InRegion(primaryRegion) .WithSnsMessagePublisher <GenericMessage>(); }
public SongController(IHaveFulfilledPublishRequirements publisher) { _publisher = publisher; }
private void AndAPublisherToThePrimaryRegion(string primaryRegion) { _primaryPublisher = CreateMeABus .InRegion(primaryRegion) .WithSqsMessagePublisher <GenericMessage>(configuration => { }); }
private void AndAPublisherToThePrimaryRegion(string primaryRegion) { _primaryPublisher = CreateMeABus .InRegion(primaryRegion) .WithSnsMessagePublisher<GenericMessage>(); }