RemoverLinea() public method

public RemoverLinea ( int productoId ) : void
productoId int
return void
        public void RemoverLinea_ProductoExiste_RemueveLaLinea()
        {
            //Arrange
            var carroCompras = new CarroCompras();
            carroCompras.AgregarLinea(new Producto { Id = 1 });

            //Act
            carroCompras.RemoverLinea(1);

            //Assert
            Assert.AreEqual(0, carroCompras.CantidadProductos);
        }
 public ActionResult Eliminar(CarroCompras carroCompras, int id, string regresarUrl)
 {
     carroCompras.RemoverLinea(id);
     return RedirectToAction("Mostrar", new { regresarUrl });
 }