public void TestAllProduct()
        {
            var service = new ProductService()
                {
                    ProductRepository = new FakeProductRepository()
                };

            var result = service.AllProducts();

            Assert.AreEqual(3, result.Count());
        }
        public void TestAllProductButEmpty()
        {
            var service = new ProductService()
            {
                ProductRepository = new EmptyFakeProductRepository()
            };

            var result = service.AllProducts();

            Assert.NotNull(result);
            Assert.AreEqual(0, result.Count());
        }
 //
 // GET: /Home/
 public ActionResult Index()
 {
     var service = new ProductService();
     return View(service.AllProducts());
 }