Example #1
0
 public PaymentController(IUnitOfWork unitOfWork, ICountOrderPrice countOrderPrice, ICreateCharge createCharge, ISynchronizeBasket synchronizeBasket)
 {
     _unitOfWork        = unitOfWork;
     _countOrderPrice   = countOrderPrice;
     _createCharge      = createCharge;
     _synchronizeBasket = synchronizeBasket;
 }
Example #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;
 }