Esempio n. 1
0
        public override bool Equals(object obj)
        {
            BankAccountType other = obj as BankAccountType;

            if (obj == null)
            {
                return(false);
            }

            return(this.Code == other.Code);
        }
Esempio n. 2
0
        public EftAuthorization AuthorizeEftPayment(string bankRoutingNumber, string bankAccountNumber, BankAccountType bankAccountType, decimal amount)
        {
            if (bankRoutingNumber == SampleData.BANK_ROUTING_ONE && bankAccountNumber == SampleData.BANK_ACCOUNT_ONE)
            {
                return(new EftAuthorization()
                {
                    Authorized = true, AuthorizationCode = 11201
                });
            }
            else if (bankRoutingNumber == SampleData.BANK_ROUTING_TWO && bankAccountNumber == SampleData.BANK_ACCOUNT_TWO)
            {
                return(new EftAuthorization()
                {
                    Authorized = true, AuthorizationCode = 80517
                });
            }
            else if (bankRoutingNumber == SampleData.BANK_ROUTING_THREE && bankAccountNumber == SampleData.BANK_ACCOUNT_THREE)
            {
                return(new EftAuthorization()
                {
                    Authorized = true, AuthorizationCode = 23005
                });
            }

            return(new EftAuthorization()
            {
                Authorized = false
            });
        }