public void Contato_ControllerGetById() { _controller = new ContatoController(_contatoService); var actionResult = _controller.Get(1); var type = actionResult.GetType(); var result = type.FullName == "Microsoft.AspNetCore.Mvc.OkObjectResult"; Assert.True(result); }