public void ObterTodosProcessos_Deve_Retornar_Sucesso() { var response = _service.ObterTodosProcessos(); Assert.IsNotNull(response); Assert.AreEqual(response.StatusCode, HttpStatusCode.OK); Assert.IsNotNull(response.Processos); Assert.IsTrue(response.Processos.Count > 0); Assert.IsTrue(response.IsValid); Assert.IsTrue(response.MensagensDeErro.Count == 0); }
public HttpResponseMessage Get() { var response = _service.ObterTodosProcessos(); return(Request.CreateResponse(response.StatusCode, response)); }