public void ObterProcessoPor_Deve_Retornar_Sucesso() { var response = _service.ObterProcessoPor(Guid.NewGuid().ToString()); Assert.IsNotNull(response); Assert.AreEqual(response.StatusCode, HttpStatusCode.OK); Assert.IsNotNull(response.Processo); Assert.IsTrue(response.IsValid); Assert.IsTrue(response.MensagensDeErro.Count == 0); }
public HttpResponseMessage Get(string id) { var response = _service.ObterProcessoPor(id); return(Request.CreateResponse(response.StatusCode, response)); }