public void SalesController_RemoveProductFromOrderList_OrderControllerAddingProductIsCalled() { AddingProductToOrder(_product, 1, _discount); _uut.RemoveProductFromOrder(_product, 1, _discount); _orderctrl.Received(1).AddProduct(_product, -1, _discount); }
public void RemoveProductFromOrder_SalesControllerCallsDalFacade_OrderLineRepositoryInserIsCalled() { _salesController.RemoveProductFromOrder(_product, 1, _discount); _dalFacade.UnitOfWork.OrderLineRepository.Received(1).Insert(Arg.Any <OrderLine>()); }