public void Cadastrar_DeveCadastrarTipoQuestao() { // Arrange var t = new Tipo(1, "boolean"); var td = new TipoDAL(); td.Cadastrar(t); // Act // Assert }
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())); } }
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()); }
public async Task <List <TipoDTO> > ConsultarTipos() { return(TipoDAL.Listar()); }
public async Task <string> Cadastrar(TipoDTO tipoDTO) { TipoDAL.Cadastrar(tipoDTO); return("Idioma " + tipoDTO.Nome + " Cadastrado com Sucesso!"); }
public List <Tipo> ListarTiposCombo() { TipoDAL tipo = new TipoDAL(); return(tipo.ListarTiposCombo()); }