Beispiel #1
0
        public SynchronizeBasket(IUnitOfWork unitOfWork, ITransferStockToStockOnHold transferStockToStockOnHold, IOptions <BasketSettings> basketSettings)
        {
            _unitOfWork = unitOfWork;
            _transferStockToStockOnHold = transferStockToStockOnHold;
            _basketSettings             = basketSettings;

            MissingStocks = new List <NotEnoughStockInfoDto>();
        }
Beispiel #2
0
 public BasketController(IUnitOfWork unitOfWork, IAddStockToBasket addProductToBasket, ICountOrderPrice countOrderPrice,
                         ITransferStockToStockOnHold transferStockToStockOnHold, IDeleteStockFromBasket deleteStockFromBasket, ISynchronizeBasket synchronizeBasket,
                         ITransferStockOnHoldWhenExpire transferStockOnHoldWhenExpire)
 {
     _unitOfWork                    = unitOfWork;
     _addStockToBasket              = addProductToBasket;
     _countOrderPrice               = countOrderPrice;
     _transferStockToStockOnHold    = transferStockToStockOnHold;
     _deleteStockFromBasket         = deleteStockFromBasket;
     _synchronizeBasket             = synchronizeBasket;
     _transferStockOnHoldWhenExpire = transferStockOnHoldWhenExpire;
 }