public bool IsMatchingBillingAddress(ref BillingAddress left, ref BillingAddress right) { return(left.City.Trim().Equals(right.City.Trim()) && left.GetFormatedAddress().Trim().Equals(right.GetFormatedAddress().Trim()) && left.State.Trim().Equals(right.State.Trim()) && left.ZipCode.Trim().Equals(right.ZipCode.Trim())); }
public Constituents(string _accountNumber, string _name, string _address1, string _address2, string _city, string _state, string _zipCode, string _phoneNumber, string _email) { this.accountNumber = _accountNumber; this.typeOfConstituent = " "; createdDate = " "; this.contactInformation = new ContactInformation(_name, _email, _phoneNumber); this.billingAddress = new BillingAddress(_address1, _address2, _city, _state, _zipCode); this.transactions = new List <Transaction>(); }
public Constituents(string _accountNumber, string _name, string _lastName, string _firstName, string _address, string _city, string _state, string _zipCode, string _phoneNumber, string _email, string _type, string _createdDate) { this.accountNumber = _accountNumber; this.typeOfConstituent = _type; this.createdDate = _createdDate; this.contactInformation = new ContactInformation(_name, _lastName, _firstName, _email, _phoneNumber); this.billingAddress = new BillingAddress(_address, _city, _state, _zipCode); this.transactions = new List <Transaction>(); }