private bool codeNoExiste(string code)
 {
     var repo = new ProductoRepository(new MvcContext());
     if (repo.GetCodesSame(code) > 0)
         return false;
     return true;
 }
        public void AllReturnListProducts()
        {
            var repo = new ProductoRepository(new MvcContext());

            var result = repo.All();

            Assert.IsInstanceOf(typeof(List<Producto>), result);
            Assert.AreEqual(5, result.Count());
        }