Exemplo n.º 1
0
        public void Cadastrar_DeveCadastrarTipoQuestao()
        {
            // Arrange
            var t  = new Tipo(1, "boolean");
            var td = new TipoDAL();

            td.Cadastrar(t);


            // Act


            // Assert
        }
Exemplo n.º 2
0
        public ActionResult AtividadeUpdate(int id)
        {
            using (ConferenteDAL dalC = new ConferenteDAL())
                using (EventoDAL dalE = new EventoDAL())
                    using (TipoDAL dalT = new TipoDAL())
                        using (AtividadeDAL dalA = new AtividadeDAL())
                        {
                            ViewBag.Tipos = dalT.Read();

                            ViewBag.Eventos = dalE.ReadAll();

                            ViewBag.Conferentes = dalC.ReadAll();

                            return(View(dalA.ReadAll()));
                        }
        }
Exemplo n.º 3
0
        public ActionResult AtividadeCreate()
        {
            using (EventoDAL dal = new EventoDAL())
            {
                ViewBag.Eventos = dal.ReadAll();
            }

            using (ConferenteDAL dal = new ConferenteDAL())
            {
                ViewBag.Conferentes = dal.ReadAll();
            }

            using (TipoDAL dal = new TipoDAL())
            {
                ViewBag.Tipos = dal.Read();
            }
            return(View());
        }
Exemplo n.º 4
0
 public async Task <List <TipoDTO> > ConsultarTipos()
 {
     return(TipoDAL.Listar());
 }
Exemplo n.º 5
0
 public async Task <string> Cadastrar(TipoDTO tipoDTO)
 {
     TipoDAL.Cadastrar(tipoDTO);
     return("Idioma " + tipoDTO.Nome + " Cadastrado com Sucesso!");
 }
Exemplo n.º 6
0
        public List <Tipo> ListarTiposCombo()
        {
            TipoDAL tipo = new TipoDAL();

            return(tipo.ListarTiposCombo());
        }