public async Task PayLoanShouldReturnNoError()
        {
            var command = new PayLoanCommand();

            command.LoanId = 1;
            var result = await _commandHandler.Handle(command, CancellationToken.None);

            Assert.Empty(result.Errors);
        }
        public async Task PayLoanShouldReturnLoanHasBeenPaid()
        {
            var command = new PayLoanCommand();

            command.LoanId = 1;
            var result = await _commandHandler.Handle(command, CancellationToken.None);

            Assert.Equal($"Loan with Id {command.LoanId} has been already paid", result.Errors.FirstOrDefault());
        }
        public async Task PayLoanShouldReturnLoanDoesntExist()
        {
            var command = new PayLoanCommand();

            command.LoanId = 100;
            var result = await _commandHandler.Handle(command, CancellationToken.None);

            Assert.Equal($"Loan with Id {command.LoanId} doesnt exist", result.Errors.FirstOrDefault());
        }