private void AddProduct(string command) { var parameters = ParseAddProductCommand(command); int quantity = parameters.Item2; Product product = _productWarehouse.Find(parameters.Item1, quantity); _shoppingBasket.Add(product); }
private void AddProduct(string command) { var parameters = ParseAddProductCommand(command); int quantity = parameters.Item2; Product product = _productWarehouse.Find(parameters.Item1, quantity); _shoppingBasket.Add(product); }