public AddProductToOrderCommandTests()
        {
            _dapperService = A.Fake <DapperService>();

            _addProductToOrderCommand =
                new AddProductToOrderCommand(A.Fake <IOptions <ApplicationConfiguration> >(), _dapperService);
        }
コード例 #2
0
 public OrdersController(CreateOrderCommand createOrderCommand, AddProductToOrderCommand addProductToOrderCommand, GetOrderByIdQuery getOrderByIdQuery, AddBundleToOrderCommand addBundleToOrderCommand)
 {
     _createOrderCommand       = createOrderCommand;
     _addProductToOrderCommand = addProductToOrderCommand;
     _getOrderByIdQuery        = getOrderByIdQuery;
     _addBundleToOrderCommand  = addBundleToOrderCommand;
 }
コード例 #3
0
        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);
        }