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

            return(View(autorModel));
        }
        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.");
        }