Ejemplo n.º 1
0
 public ActionResult Price(string[] products)
 {
     var calculator = new Calculator();
     var price = calculator.GetPrice(products);
     ViewBag.Price = price;
     return View();
 }
Ejemplo n.º 2
0
        public void multiple_products_should_cost(string[] products, int expectedPrice)
        {
            var calculator = new Calculator();

            int price = calculator.GetPrice(products);

            price.ShouldEqual(expectedPrice);
        }