public void Setup()
 {
     this._awsQueueClient   = A.Fake <IAwsQueueClient>();
     this._awsConfiguration = A.Fake <IAwsConfiguration>();
     this._logger           = A.Fake <ILogger <QueueDataSynchroniserRequestPublisher> >();
     this._serialiser       = A.Fake <IThirdPartyDataRequestSerialiser>();
 }
コード例 #2
0
 public ScheduleRuleCommand(IAppFactory appFactory)
 {
     this._console        = appFactory.Console;
     this._awsQueueClient = appFactory.AwsQueueClient;
     this._serialiser     = appFactory.ScheduledExecutionSerialiser;
     this._configuration  = appFactory.Configuration;
 }
コード例 #3
0
 /// <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));
 }
 /// <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));
 }
コード例 #5
0
 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 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> >();
 }
コード例 #7
0
        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> >();
        }
コード例 #8
0
 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));
 }
コード例 #9
0
        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> >();
        }
コード例 #10
0
 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));
 }
コード例 #12
0
 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;
 }
コード例 #14
0
        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);
        }
コード例 #15
0
        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);
        }
コード例 #16
0
 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));
 }
コード例 #17
0
 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));
 }
 /// <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));
 }
コード例 #19
0
        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));
        }
        /// <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));
        }
コード例 #21
0
 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));
 }
コード例 #22
0
        public S3FileUploadMonitoringProcess(
            IFileUploadMessageMapper mapper,
            IUploadConfiguration configuration,
            IAwsQueueClient queueClient,
            IAwsS3Client s3Client,
            ILogger <S3FileUploadMonitoringProcess> logger)
        {
            this._mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
            this._configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
            this._queueClient   = queueClient ?? throw new ArgumentNullException(nameof(queueClient));
            this._s3Client      = s3Client ?? throw new ArgumentNullException(nameof(s3Client));
            this._logger        = logger ?? throw new ArgumentNullException(nameof(logger));


            this._dataImportTradeFileDirectoryPatternRegex      = new Regex(this._configuration.DataImportTradeFileDirectoryPattern, RegexOptions.Compiled | RegexOptions.Singleline);
            this._dataImportAllocationFileDirectoryPatternRegex = new Regex(this._configuration.DataImportAllocationFileDirectoryPattern, RegexOptions.Compiled | RegexOptions.Singleline);
            this._dataImportEtlFileDirectoryPatternRegex        = new Regex(this._configuration.DataImportEtlFileDirectoryPattern, RegexOptions.Compiled | RegexOptions.Singleline);
            this._dataImportIgnoreFileDirectoryPatternRegex     = new Regex(this._configuration.DataImportIgnoreFileDirectoryPattern, RegexOptions.Compiled | RegexOptions.Singleline);
        }