public void Deve_Excluir_Registro_POA()
        {
            fixture = ObtenhaCabecalho(exclusao: true);

            var postResult = TesteBase.ExecuteDeleteAsync(fixture, obterUrlDelete(1));

            Assert.True(postResult.IsSuccessStatusCode, postResult.Content.ReadAsStringAsync().Result);
        }
Example #2
0
        public void Deve_Disparar_Excecao_Se_Tentativa_Delete_Sem_Tipo_Cadastrado()
        {
            _fixture = ObtenhaCabecalho();

            var deleteResult = TesteBase.ExecuteDeleteAsync(_fixture, obterUrlDelete(), new List <long> {
                100, 101, 102
            });

            Assert.False(deleteResult.IsSuccessStatusCode);
        }
Example #3
0
        public void Deve_Cadastar_Apagar_Tipo_Evento()
        {
            _fixture = ObtenhaCabecalho();

            var postResult = TesteBase.ExecutePostAsync(_fixture, obterUrlPost(), ObtenhaObjetoCadastrar());

            Assert.True(postResult.IsSuccessStatusCode);

            var deleteResult = TesteBase.ExecuteDeleteAsync(_fixture, obterUrlDelete(), new List <long> {
                1
            });

            Assert.True(deleteResult.IsSuccessStatusCode);
        }