public async Task Deve_Consultar_Retorno_Vazio() { _fixture = ObtenhaCabecalho(); var getResult = TesteBase.ExecuteGetAsync(_fixture, obterUrlGet(1000)); Assert.True(getResult.IsSuccessStatusCode); Assert.IsNotType <EventoTipoDto>(JsonConvert.DeserializeObject <EventoTipoDto>(await getResult.Content.ReadAsStringAsync())); }
public void Deve_Listar_Evento_Tipo() { _fixture = ObtenhaCabecalho(); FiltroEventoTipoDto Dto = new FiltroEventoTipoDto { LocalOcorrencia = EventoLocalOcorrencia.DRE, Letivo = EventoLetivo.Opcional, Descricao = "teste" }; var postResult = TesteBase.ExecuteGetAsync(_fixture, obterUrlListar(Dto.Descricao, ((int)Dto.Letivo).ToString(), ((int)Dto.LocalOcorrencia).ToString())); Assert.True(postResult.IsSuccessStatusCode); }
public async void Deve_Cadastrar_Consultar_Tipo_Evento() { _fixture = ObtenhaCabecalho(); var Dto = ObtenhaObjetoCadastrar(); var postResult = TesteBase.ExecutePostAsync(_fixture, obterUrlPost(), Dto); Assert.True(postResult.IsSuccessStatusCode); var getResult = TesteBase.ExecuteGetAsync(_fixture, obterUrlGet(1)); Assert.True(getResult.IsSuccessStatusCode); Assert.IsType <EventoTipoDto>(JsonConvert.DeserializeObject <EventoTipoDto>(await getResult.Content.ReadAsStringAsync())); }