public async Task <IActionResult> GetAll() { try { var getAllConta = await _service.GetAll(); return(Ok(getAllConta)); } catch (ArgumentException e) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"{e.Message}")); } }
public void GetAllTest() { var result = contaService.GetAll(); Assert.NotEmpty(result); }