コード例 #1
0
 private bool codeNoExiste(string code)
 {
     var repo = new ProductoRepository(new MvcContext());
     if (repo.GetCodesSame(code) > 0)
         return false;
     return true;
 }
コード例 #2
0
        public void AllReturnListProducts()
        {
            var repo = new ProductoRepository(new MvcContext());

            var result = repo.All();

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