public async Task ShouldGetDebitById()
        {
            var debit = new Debit(1);

            var expectedDebit = DebitMap.DebitToDebitResponse(debit);

            _debitRepository.GetById(1).Returns(debit);

            var response = await _debitService.GetById(1);

            response.Should().BeEquivalentTo(expectedDebit);
        }
        public IActionResult GetById(Guid id)
        {
            var result = debitService.GetById(id);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result.Message));
        }