public void GivenAnEmptyAccountNumber_ArgumentNullExceptionIsThrown()
        {
            Action action = () => _useCase.GetByAccountNumber(null);

            action
            .Should()
            .Throw <ArgumentNullException>();
        }
        public override bool Execute(ListAccountInput input)
        {
            if (string.IsNullOrEmpty(input.AccountNumber))
            {
                throw new ArgumentNullException(nameof(input.AccountNumber));
            }

            try
            {
                var bankAccount = _useCase.GetByAccountNumber(input.AccountNumber);

                System.Console.WriteLine($"Bank account: {bankAccount.Customer.Name}");
            }
            catch (AccountNotFoundException)
            {
                System.Console.Error.WriteLine("Account number does not exist as a checking account");
                return(false);
            }

            return(true);
        }