Ejemplo n.º 1
0
        async Task <bool> PerformBankAccountCheckAsync(SignupChecks checks, string accountNumber)
        {
            bool result = true;

            if ((checks & SignupChecks.PerformBankAccountCheck) == SignupChecks.PerformBankAccountCheck)
            {
                this.status.AppendStatus("PerformBankAccountCheckAsync: Starting.");
                result = await this.activityClient.ValidateBankAccount(accountNumber);

                this.status.AppendStatus("PerformBankAccountCheckAsync: Completed with result: " + result);
            }

            return(result);
        }
Ejemplo n.º 2
0
        async Task <bool> PerformAddressCheckAsync(SignupChecks checks, CustomerAddress address)
        {
            bool result = true;

            // Check to see if Address check is requested for this application
            if ((checks & SignupChecks.PerformAddressCheck) == SignupChecks.PerformAddressCheck)
            {
                this.status.AppendStatus("PerformAddressCheck: Starting.");
                result = await this.activityClient.ValidateAddress(address);

                this.status.AppendStatus("PerformAddressCheck: Completed with result: " + result);
            }

            return(result);
        }