Ejemplo n.º 1
0
        public ActionResult Create(Autor autorModel)
        {
            if (ModelState.IsValid)
            {
                gAutor.Inserir(autorModel);
                return(RedirectToAction("Index"));
            }

            return(View(autorModel));
        }
Ejemplo n.º 2
0
        public void InserirTest()
        {
            GerenciadorAutor target     = new GerenciadorAutor(); // TODO: Initialize to an appropriate value
            Autor            autorModel = null;                   // TODO: Initialize to an appropriate value
            int expected = 0;                                     // TODO: Initialize to an appropriate value
            int actual;

            actual = target.Inserir(autorModel);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }