public AddProductToOrderCommandTests() { _dapperService = A.Fake <DapperService>(); _addProductToOrderCommand = new AddProductToOrderCommand(A.Fake <IOptions <ApplicationConfiguration> >(), _dapperService); }
public OrdersController(CreateOrderCommand createOrderCommand, AddProductToOrderCommand addProductToOrderCommand, GetOrderByIdQuery getOrderByIdQuery, AddBundleToOrderCommand addBundleToOrderCommand) { _createOrderCommand = createOrderCommand; _addProductToOrderCommand = addProductToOrderCommand; _getOrderByIdQuery = getOrderByIdQuery; _addBundleToOrderCommand = addBundleToOrderCommand; }
public OrdersControllersTests() { _createOrderCommand = A.Fake <CreateOrderCommand>(); _addProductToOrderCommand = A.Fake <AddProductToOrderCommand>(); _getOrderByIdQuery = A.Fake <GetOrderByIdQuery>(); _addBundleToOrderCommand = A.Fake <AddBundleToOrderCommand>(); _ordersController = new OrdersController(_createOrderCommand, _addProductToOrderCommand, _getOrderByIdQuery, _addBundleToOrderCommand); }