public void Setup() { this._logger = A.Fake <ILogger>(); this._exchangeTickInitialiser = A.Fake <IExchangeSeriesInitialiser>(); this._strategy = A.Fake <IEquityDataGeneratorStrategy>(); this._heartbeat = new Heartbeat(TimeSpan.FromMilliseconds(500)); }
public EquitiesMarkovProcess( IExchangeSeriesInitialiser exchangeTickInitialiser, IEquityDataGeneratorStrategy dataStrategy, IHeartbeat heartbeat, ILogger logger) { this._exchangeTickInitialiser = exchangeTickInitialiser ?? throw new ArgumentNullException(nameof(exchangeTickInitialiser)); this._dataStrategy = dataStrategy ?? throw new ArgumentNullException(nameof(dataStrategy)); this._heartBeat = heartbeat ?? throw new ArgumentNullException(nameof(heartbeat)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }