public BmllDataRequestsGetTimeBars( IBmllTimeBarApi timeBarRepository, ILogger <BmllDataRequestsGetTimeBars> logger) { this._timeBarRepository = timeBarRepository ?? throw new ArgumentNullException(nameof(timeBarRepository)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public void Setup() { this._requestsGetTimeBars = A.Fake <IBmllDataRequestsGetTimeBars>(); this._marketDataRequestProjector = A.Fake <IMarketDataRequestToMinuteBarRequestKeyDtoProjector>(); this._timeBarRepository = A.Fake <IBmllTimeBarApi>(); this._policyFactory = A.Fake <IPolicyFactory>(); this._logger = A.Fake <ILogger <BmllDataRequestsApiManager> >(); A.CallTo(() => this._timeBarRepository.HeartBeatingAsync(A <CancellationToken> .Ignored)).Returns(true); }
public BmllDataRequestsApiManager( IBmllDataRequestsGetTimeBars requestsGetTimeBars, IMarketDataRequestToMinuteBarRequestKeyDtoProjector marketDataRequestProjector, IPolicyFactory policyFactory, IBmllTimeBarApi timeBarRepository, ILogger <BmllDataRequestsApiManager> logger) { this._requestsGetTimeBars = requestsGetTimeBars ?? throw new ArgumentNullException(nameof(requestsGetTimeBars)); this._marketDataRequestProjector = marketDataRequestProjector ?? throw new ArgumentNullException(nameof(marketDataRequestProjector)); this._policyFactory = policyFactory ?? throw new ArgumentNullException(nameof(policyFactory)); this._timeBarRepository = timeBarRepository ?? throw new ArgumentNullException(nameof(timeBarRepository)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public void Setup() { this._timeBarRepository = A.Fake <IBmllTimeBarApi>(); this._logger = new NullLogger <BmllDataRequestsGetTimeBars>(); }