public ScheduleRuleCommand(IAppFactory appFactory) { this._console = appFactory.Console; this._awsQueueClient = appFactory.AwsQueueClient; this._serialiser = appFactory.ScheduledExecutionSerialiser; this._configuration = appFactory.Configuration; }
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> >(); }
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> >(); }
/// <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 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> >(); }
/// <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 void Setup() { this._console = A.Fake <IConsole>(); this._awsQueueClient = A.Fake <IAwsQueueClient>(); this._serialiser = A.Fake <IScheduledExecutionMessageBusSerialiser>(); this._configuration = A.Fake <INetworkConfiguration>(); this._appFactory = A.Fake <IAppFactory>(); A.CallTo(() => this._appFactory.Console).Returns(this._console); A.CallTo(() => this._appFactory.AwsQueueClient).Returns(this._awsQueueClient); A.CallTo(() => this._appFactory.ScheduledExecutionSerialiser).Returns(this._serialiser); A.CallTo(() => this._appFactory.Configuration).Returns(this._configuration); }
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)); }
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)); }
/// <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)); }