public void Setup() { this._auroraOrdersRepository = A.Fake <IOrdersRepository>(); this._orderAllocationProjector = A.Fake <IOrdersToAllocatedOrdersProjector>(); this._auroraMarketRepository = A.Fake <IReddeerMarketRepository>(); this._marketService = A.Fake <IMarketOpenCloseEventService>(); this._opCtx = A.Fake <ISystemProcessOperationContext>(); this._sortComparer = A.Fake <IUniverseSortComparer>(); this._logger = A.Fake <ILogger <UniverseBuilder> >(); }
/// <summary> /// Initializes a new instance of the <see cref="UniverseBuilder"/> class. /// </summary> /// <param name="ordersRepository"> /// The orders repository. /// </param> /// <param name="allocateOrdersProjector"> /// The allocate orders projector. /// </param> /// <param name="marketRepository"> /// The market repository. /// </param> /// <param name="marketService"> /// The market service. /// </param> /// <param name="universeSorter"> /// The universe sorter. /// </param> /// <param name="logger"> /// The logger. /// </param> public UniverseBuilder( IOrdersRepository ordersRepository, IOrdersToAllocatedOrdersProjector allocateOrdersProjector, IReddeerMarketRepository marketRepository, IMarketOpenCloseEventService marketService, IUniverseSortComparer universeSorter, ILogger <UniverseBuilder> logger) { this.ordersRepository = ordersRepository ?? throw new ArgumentNullException(nameof(ordersRepository)); this.allocateOrdersProjector = allocateOrdersProjector ?? throw new ArgumentNullException(nameof(allocateOrdersProjector)); this.marketRepository = marketRepository ?? throw new ArgumentNullException(nameof(marketRepository)); this.marketService = marketService ?? throw new ArgumentNullException(nameof(marketService)); this.universeSorter = universeSorter ?? throw new ArgumentNullException(nameof(universeSorter)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="DataManifestInterpreter"/> class. /// </summary> /// <param name="dataManifest"> /// The data manifest. /// </param> /// <param name="universeBuilder"> /// The universe builder. /// </param> /// <param name="ordersRepository"> /// The orders repository. /// </param> /// <param name="systemProcessOperationContext"> /// The system operation context. /// </param> /// <param name="marketService"> /// The market Service. /// </param> /// <param name="marketRepository"> /// The market Repository. /// </param> public DataManifestInterpreter( IDataManifest dataManifest, IUniverseBuilder universeBuilder, IOrdersRepository ordersRepository, IOrdersToAllocatedOrdersProjector allocateOrdersProjector, ISystemProcessOperationContext systemProcessOperationContext, IMarketOpenCloseEventService marketService, IReddeerMarketRepository marketRepository, IRefinitivTickPriceHistoryApi refinitivTickPriceHistoryApi) { this.DataManifest = dataManifest ?? throw new ArgumentNullException(nameof(dataManifest)); this.universeBuilder = universeBuilder ?? throw new ArgumentNullException(nameof(universeBuilder)); this.ordersRepository = ordersRepository ?? throw new ArgumentNullException(nameof(ordersRepository)); this.allocateOrdersProjector = allocateOrdersProjector ?? throw new ArgumentNullException(nameof(allocateOrdersProjector)); this.systemProcessOperationContext = systemProcessOperationContext ?? throw new ArgumentNullException(nameof(systemProcessOperationContext)); this.marketService = marketService ?? throw new ArgumentNullException(nameof(marketService)); this.marketRepository = marketRepository ?? throw new ArgumentNullException(nameof(marketRepository)); this.refinitivTickPriceHistoryApi = refinitivTickPriceHistoryApi ?? throw new ArgumentNullException(nameof(refinitivTickPriceHistoryApi)); }
/// <summary> /// Initializes a new instance of the <see cref="DataManifestBuilder"/> class. /// </summary> /// <param name="universeBuilder"> /// The universe builder. /// </param> /// <param name="ordersRepository"> /// The orders repository. /// </param> /// <param name="marketRepository"> /// The market repository. /// </param> /// <param name="marketOpenCloseEventService"> /// The market open close hours service. /// </param> /// <param name="timeLineContinuum"> /// The time line continuum. /// </param> /// <param name="logger"> /// The logger. /// </param> public DataManifestBuilder( IUniverseBuilder universeBuilder, IOrdersRepository ordersRepository, IOrdersToAllocatedOrdersProjector allocateOrdersProjector, IReddeerMarketRepository marketRepository, IMarketOpenCloseEventService marketOpenCloseEventService, ITimeLineContinuum timeLineContinuum, IRefinitivTickPriceHistoryApi refinitivTickPriceHistoryApi, ILogger <IDataManifestBuilder> logger) { this.universeBuilder = universeBuilder ?? throw new ArgumentNullException(nameof(universeBuilder)); this.ordersRepository = ordersRepository ?? throw new ArgumentNullException(nameof(ordersRepository)); this.allocateOrdersProjector = allocateOrdersProjector ?? throw new ArgumentNullException(nameof(allocateOrdersProjector)); this.marketRepository = marketRepository ?? throw new ArgumentNullException(nameof(marketRepository)); this.marketOpenCloseEventService = marketOpenCloseEventService ?? throw new ArgumentNullException(nameof(marketOpenCloseEventService)); this.timeLineContinuum = timeLineContinuum ?? throw new ArgumentNullException(nameof(timeLineContinuum)); this.refinitivTickPriceHistoryApi = refinitivTickPriceHistoryApi ?? throw new ArgumentNullException(nameof(refinitivTickPriceHistoryApi)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }