public void Setup() { this._awsQueueClient = A.Fake <IAwsQueueClient>(); this._awsConfiguration = A.Fake <IAwsConfiguration>(); this._logger = A.Fake <ILogger <QueueDataSynchroniserRequestPublisher> >(); this._serialiser = A.Fake <IThirdPartyDataRequestSerialiser>(); }
public void Setup() { loggerMock = Substitute.For <ILogger>(); configuration = new DefaultAWSConfiguration("antecipa-dev"); }
public void Setup() { this.scheduleDisassembler = A.Fake <IScheduleDisassembler>(); this.awsClient = A.Fake <IAwsQueueClient>(); this.awsConfiguration = A.Fake <IAwsConfiguration>(); this.busSerialiser = A.Fake <IScheduledExecutionMessageBusSerialiser>(); this.systemProcessContext = A.Fake <ISystemProcessContext>(); this.logger = A.Fake <ILogger <QueueDistributedRuleSubscriber> >(); }
/// <summary> /// Initializes a new instance of the <see cref="QueueScheduledRulePublisher"/> class. /// </summary> /// <param name="awsQueueClient"> /// The aws queue client. /// </param> /// <param name="awsConfiguration"> /// The aws configuration. /// </param> /// <param name="logger"> /// The logger. /// </param> public QueueScheduledRulePublisher( IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, ILogger <IQueueScheduledRulePublisher> logger) { this.awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this.awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="QueueDelayedRuleDistributedPublisher"/> class. /// </summary> /// <param name="awsQueueClient"> /// The aws queue client. /// </param> /// <param name="awsConfiguration"> /// The aws configuration. /// </param> /// <param name="logger"> /// The logger. /// </param> public QueueDelayedRuleDistributedPublisher( IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, ILogger <QueueDelayedRuleDistributedPublisher> logger) { this.awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this.awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public void Setup() { this._awsQueueClient = A.Fake <IAwsQueueClient>(); this._awsConfiguration = A.Fake <IAwsConfiguration>(); this._logger = A.Fake <ILogger <DataRequestSubscriber> >(); this._sysCtx = A.Fake <ISystemProcessContext>(); this._serialiser = new ThirdPartyDataRequestSerialiser(); this._requestManager = A.Fake <IDataRequestManager>(); }
public SqsSubscriberEndpoint(IAwsConfiguration awsConfiguration) { if (awsConfiguration == null) throw new ArgumentNullException("awsConfiguration"); awsConfiguration.Validate(); this.awsConfiguration = awsConfiguration; }
public void Setup() { this._awsQueueClient = A.Fake <IAwsQueueClient>(); this._awsConfiguration = A.Fake <IAwsConfiguration>(); this._messageBusSerialiser = A.Fake <IScheduledExecutionMessageBusSerialiser>(); this._dataRequestRepository = A.Fake <IRuleRunDataRequestRepository>(); this._repository = A.Fake <ISystemProcessOperationRuleRunRepository>(); this._logger = A.Fake <ILogger <ScheduleRulePublisher> >(); }
public SnsPublisherEndpointManager(SnsPublisherEndpoint endpoint, IAwsConfiguration awsConfiguration) : base(awsConfiguration) { if (endpoint == null) throw new ArgumentNullException("endpoint"); endpoint.Validate(); this.endpoint = endpoint; }
public QueueDataSynchroniserRequestPublisher( IAwsConfiguration awsConfiguration, IAwsQueueClient awsQueueClient, IThirdPartyDataRequestSerialiser serialiser, ILogger <QueueDataSynchroniserRequestPublisher> logger) { this._awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this._awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this._serialiser = serialiser ?? throw new ArgumentNullException(nameof(serialiser)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="QueueDistributedRulePublisher"/> class. /// </summary> /// <param name="awsQueueClient"> /// The aws queue client. /// </param> /// <param name="awsConfiguration"> /// The aws configuration. /// </param> /// <param name="messageBusSerialiser"> /// The message bus serializer. /// </param> /// <param name="logger"> /// The logger. /// </param> public QueueDistributedRulePublisher( IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, IScheduledExecutionMessageBusSerialiser messageBusSerialiser, ILogger <QueueDistributedRulePublisher> logger) { this.awsQueueClient = awsQueueClient; this.awsConfiguration = awsConfiguration; this.messageBusSerialiser = messageBusSerialiser; this.logger = logger; }
public SnsPublisherEndpoint(IAwsConfiguration awsConfiguration) { if (awsConfiguration == null) { throw new ArgumentNullException("awsConfiguration"); } awsConfiguration.Validate(); this.awsConfiguration = awsConfiguration; }
public void Setup() { this._awsQueueClient = A.Fake <IAwsQueueClient>(); this._awsConfiguration = A.Fake <IAwsConfiguration>(); this._messageBusSerialiser = A.Fake <IScheduledExecutionMessageBusSerialiser>(); this._apiHeartbeat = A.Fake <IApiHeartbeat>(); this._ctx = A.Fake <ISystemProcessContext>(); this._analysisEngine = A.Fake <IAnalysisEngine>(); this._logger = A.Fake <ILogger <QueueRuleSubscriber> >(); }
public EmailNotificationMessageSender( IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, IMessageBusSerialiser serialiser, ILogger <EmailNotificationMessageSender> logger) { this._awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this._awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this._serialiser = serialiser ?? throw new ArgumentNullException(nameof(serialiser)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="QueueScheduleRulePublisher"/> class. /// </summary> /// <param name="awsQueueClient"> /// The aws queue client. /// </param> /// <param name="awsConfiguration"> /// The aws configuration. /// </param> /// <param name="serialiser"> /// The serializer. /// </param> /// <param name="logger"> /// The logger. /// </param> public QueueScheduleRulePublisher( IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, IScheduledExecutionMessageBusSerialiser serialiser, ILogger <QueueScheduleRulePublisher> logger) { this.awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this.awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this.serialiser = serialiser ?? throw new ArgumentNullException(nameof(serialiser)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public QueueCasePublisher( IMessageBusSerialiser serialiser, IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, ILogger <QueueCasePublisher> logger) { this._serialiser = serialiser ?? throw new ArgumentNullException(nameof(serialiser)); this._awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this._awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public SqsSubscriberClient(SqsSubscriberEndpoint endpoint, IAwsConfiguration awsConfiguration) : base(awsConfiguration) { if (endpoint == null) { throw new ArgumentNullException("endpoint"); } endpoint.Validate(); this.endpoint = endpoint; }
public SnsPublisherClient(SnsPublisherEndpoint endpoint, IAwsConfiguration awsConfiguration) : base(awsConfiguration) { if (awsConfiguration == null) { throw new ArgumentNullException("awsConfiguration"); } endpoint.Validate(); this.endpoint = endpoint; }
public void Setup() { this.dataVerifier = A.Fake <IDataVerifier>(); this.autoSchedule = A.Fake <IAutoSchedule>(); this.awsQueueClient = A.Fake <IAwsQueueClient>(); this.awsConfiguration = A.Fake <IAwsConfiguration>(); this.serialiser = new MessageBusSerialiser(); this.systemProcessContext = A.Fake <ISystemProcessContext>(); this.systemProcessOperationContext = A.Fake <ISystemProcessOperationContext>(); this.logger = new NullLogger <QueueAutoScheduleSubscriber>(); A.CallTo(() => this.systemProcessContext.CreateAndStartOperationContext()) .Returns(this.systemProcessOperationContext); }
/// <summary> /// Initializes a new instance of the <see cref="QueueAutoScheduleSubscriber"/> class. /// </summary> /// <param name="dataVerifier"> /// The data verifier. /// </param> /// <param name="autoSchedule"> /// The auto schedule. /// </param> /// <param name="awsQueueClient"> /// The aws queue client. /// </param> /// <param name="awsConfiguration"> /// The aws configuration. /// </param> /// <param name="serialiser"> /// The serializer. /// </param> /// <param name="systemProcessContext"> /// The system process context. /// </param> /// <param name="logger"> /// The logger. /// </param> public QueueAutoScheduleSubscriber( IDataVerifier dataVerifier, IAutoSchedule autoSchedule, IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, IMessageBusSerialiser serialiser, ISystemProcessContext systemProcessContext, ILogger <QueueAutoScheduleSubscriber> logger) { this.dataVerifier = dataVerifier ?? throw new ArgumentNullException(nameof(dataVerifier)); this.autoSchedule = autoSchedule ?? throw new ArgumentNullException(nameof(autoSchedule)); this.awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this.awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this.serializer = serialiser ?? throw new ArgumentNullException(nameof(serialiser)); this.systemProcessContext = systemProcessContext ?? throw new ArgumentNullException(nameof(systemProcessContext)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public QueueRuleCancellationSubscriber( IRuleCancellation ruleCancellation, IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, ISystemProcessContext systemProcessContext, IMessageBusSerialiser messageBusSerialiser, ILogger <QueueRuleCancellationSubscriber> logger) { this._ruleCancellation = ruleCancellation ?? throw new ArgumentNullException(nameof(ruleCancellation)); this._awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this._awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this._systemProcessContext = systemProcessContext ?? throw new ArgumentNullException(nameof(systemProcessContext)); this._messageBusSerialiser = messageBusSerialiser ?? throw new ArgumentNullException(nameof(messageBusSerialiser)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public DataRequestSubscriber( IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, ISystemProcessContext systemProcessContext, IThirdPartyDataRequestSerialiser serialiser, IDataRequestManager dataRequestManager, ILogger <DataRequestSubscriber> logger) { this._awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this._awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this._systemProcessContext = systemProcessContext ?? throw new ArgumentNullException(nameof(systemProcessContext)); this._serialiser = serialiser ?? throw new ArgumentNullException(nameof(serialiser)); this._dataRequestManager = dataRequestManager ?? throw new ArgumentNullException(nameof(dataRequestManager)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ScheduleRulePublisher( IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, IRuleRunDataRequestRepository dataRequestRepository, IScheduledExecutionMessageBusSerialiser messageBusSerialiser, ISystemProcessOperationRuleRunRepository ruleRunRepository, ILogger <ScheduleRulePublisher> logger) { this._awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this._awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this._dataRequestRepository = dataRequestRepository ?? throw new ArgumentNullException(nameof(dataRequestRepository)); this._messageBusSerialiser = messageBusSerialiser ?? throw new ArgumentNullException(nameof(messageBusSerialiser)); this._ruleRunRepository = ruleRunRepository ?? throw new ArgumentNullException(nameof(ruleRunRepository)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
protected SqsClient(IAwsConfiguration awsConfiguration) { if (awsConfiguration == null) throw new ArgumentNullException("awsConfiguration"); awsConfiguration.Validate(); try { Client = AWSClientFactory.CreateAmazonSQSClient(awsConfiguration.AccessKey, awsConfiguration.SecretKey); } catch (Exception ex) { throw new MessagingException( "An error occurred while attempting to access SQS. See inner exception for more details.", ex); } }
/// <summary> /// Initializes a new instance of the <see cref="QueueDistributedRuleSubscriber"/> class. /// </summary> /// <param name="scheduleDisassembler"> /// The schedule disassembler. /// </param> /// <param name="awsQueueClient"> /// The aws queue client. /// </param> /// <param name="awsConfiguration"> /// The aws configuration. /// </param> /// <param name="messageBusSerialiser"> /// The message bus serializer. /// </param> /// <param name="systemProcessContext"> /// The system process context. /// </param> /// <param name="logger"> /// The logger. /// </param> public QueueDistributedRuleSubscriber( IScheduleDisassembler scheduleDisassembler, IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, IScheduledExecutionMessageBusSerialiser messageBusSerialiser, ISystemProcessContext systemProcessContext, ILogger <QueueDistributedRuleSubscriber> logger) { this.scheduleDisassembler = scheduleDisassembler ?? throw new ArgumentNullException(nameof(scheduleDisassembler)); this.awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this.awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this.messageBusSerializer = messageBusSerialiser ?? throw new ArgumentNullException(nameof(messageBusSerialiser)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.systemProcessContext = systemProcessContext ?? throw new ArgumentNullException(nameof(systemProcessContext)); }
public QueueRuleSubscriber( IAnalysisEngine analysisEngine, IAwsQueueClient awsQueueClient, IAwsConfiguration awsConfiguration, IScheduledExecutionMessageBusSerialiser messageBusSerialiser, IApiHeartbeat apiHeartbeat, ISystemProcessContext systemProcessContext, ILogger <QueueRuleSubscriber> logger) { this._analysisEngine = analysisEngine ?? throw new ArgumentNullException(nameof(analysisEngine)); this._awsQueueClient = awsQueueClient ?? throw new ArgumentNullException(nameof(awsQueueClient)); this._awsConfiguration = awsConfiguration ?? throw new ArgumentNullException(nameof(awsConfiguration)); this._messageBusSerialiser = messageBusSerialiser ?? throw new ArgumentNullException(nameof(messageBusSerialiser)); this._apiHeartbeat = apiHeartbeat ?? throw new ArgumentNullException(nameof(apiHeartbeat)); this._systemProcessContext = systemProcessContext ?? throw new ArgumentNullException(nameof(systemProcessContext)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
protected SqsClient(IAwsConfiguration awsConfiguration) { if (awsConfiguration == null) { throw new ArgumentNullException("awsConfiguration"); } awsConfiguration.Validate(); try { Client = AWSClientFactory.CreateAmazonSQSClient(awsConfiguration.AccessKey, awsConfiguration.SecretKey); } catch (Exception ex) { throw new MessagingException( "An error occurred while attempting to access SQS. See inner exception for more details.", ex); } }
public PokedexService(ITypeDistinctionService typeDistinctionService, IS3DataAccess s3DataAccess, IAwsConfiguration awsConfiguration) { _typeDistinctionService = typeDistinctionService; _s3DataAccess = s3DataAccess; _awsConfiguration = awsConfiguration; }
protected AwsBaseService(ILogger logger, IAwsConfiguration configuration, string region) : this() { Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); Logger = logger ?? throw new ArgumentNullException(nameof(logger)); Region = region ?? throw new ArgumentNullException(nameof(region)); }
public AwsS3StorageClient(IAwsConfiguration awsConfiguration) { awsConfiguration.Validate(); this.awsConfiguration = awsConfiguration; }
public SqsPublisherEndpointManager(SqsPublisherEndpoint endpoint, IAwsConfiguration awsConfiguration) : base(endpoint, awsConfiguration) { }
public BaseRepository(ILogger logger, IAwsConfiguration configuration, string region) : base(logger, configuration, region) { }
public EventHandler(string busName, ILogger logger, IAwsConfiguration configuration, string region) : base(busName, logger, configuration, region) { }
public SmsNotificationHandler(ILogger logger, IAwsConfiguration configuration, string region) : base(logger, configuration, region) { }
protected SqsEndpointManager(SqsEndpoint endpoint, IAwsConfiguration awsConfiguration) : base(awsConfiguration) { Endpoint = endpoint; }