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> >();
 }
Exemple #2
0
 /// <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));
 }