Ejemplo n.º 1
0
        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);
        }