public void Setup() { this.apiRepository = A.Fake <IRuleParameterApi>(); this.systemProcessOperationContext = A.Fake <ISystemProcessOperationContext>(); this.distributedRulePublisher = A.Fake <IQueueDistributedRulePublisher>(); this.logger = A.Fake <ILogger <ScheduleDisassembler> >(); }
public void Setup() { this._exchangeRateApi = A.Fake <IExchangeRateApiCachingDecorator>(); this._marketApi = A.Fake <IMarketOpenCloseApiCachingDecorator>(); this._ruleApi = A.Fake <IRuleParameterApi>(); this._enrichmentApi = A.Fake <IEnrichmentApi>(); this._logger = A.Fake <ILogger <ApiHeartbeat> >(); }
/// <summary> /// Initializes a new instance of the <see cref="ScheduleDisassembler"/> class. /// </summary> /// <param name="ruleParameterApiRepository"> /// The rule parameter repository. /// </param> /// <param name="rulePublisher"> /// The rule publisher. /// </param> /// <param name="logger"> /// The logger. /// </param> public ScheduleDisassembler( IRuleParameterApi ruleParameterApiRepository, IQueueDistributedRulePublisher rulePublisher, ILogger <ScheduleDisassembler> logger) { this.ruleParameterApiRepository = ruleParameterApiRepository ?? throw new ArgumentNullException(nameof(ruleParameterApiRepository)); this.rulePublisher = rulePublisher ?? throw new ArgumentNullException(nameof(rulePublisher)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="ApiHeartbeat"/> class. /// </summary> /// <param name="exchangeRateApi"> /// The exchange rate. /// </param> /// <param name="marketRateApi"> /// The market rate. /// </param> /// <param name="rulesApi"> /// The rules. /// </param> /// <param name="enrichmentApi"> /// The enrichment. /// </param> /// <param name="logger"> /// The logger. /// </param> public ApiHeartbeat( IExchangeRateApiCachingDecorator exchangeRateApi, IMarketOpenCloseApiCachingDecorator marketRateApi, IRuleParameterApi rulesApi, IEnrichmentApi enrichmentApi, ILogger <ApiHeartbeat> logger) { this.exchangeRateApi = exchangeRateApi ?? throw new ArgumentNullException(nameof(exchangeRateApi)); this.marketRateApi = marketRateApi ?? throw new ArgumentNullException(nameof(marketRateApi)); this.rulesApi = rulesApi ?? throw new ArgumentNullException(nameof(rulesApi)); this.enrichmentApi = enrichmentApi ?? throw new ArgumentNullException(nameof(enrichmentApi)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public RuleParameterService(IRuleParameterApi ruleParameterApiRepository, ILogger <RuleParameterService> logger) { this._ruleParameterApiRepository = ruleParameterApiRepository ?? throw new ArgumentNullException(nameof(ruleParameterApiRepository)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }