public int CompareTo(TransactionAdapter other) { if (0 != Amount.CompareTo(other.Amount)) { return(Amount.CompareTo(other.Amount)); } if (0 != Originator.CompareTo(other.Originator)) { return(Originator.CompareTo(other.Originator)); } if (0 != BeneficiaryName.CompareTo(other.BeneficiaryName)) { return(BeneficiaryName.CompareTo(other.BeneficiaryName)); } if (0 != BeneficiaryAccount.CompareTo(other.BeneficiaryAccount)) { return(BeneficiaryAccount.CompareTo(other.BeneficiaryAccount)); } if (0 != Currency.CompareTo(other.Currency)) { return(Currency.CompareTo(other.Currency)); } if (0 != ExecutionDate.CompareTo(other.ExecutionDate)) { return(ExecutionDate.CompareTo(other.ExecutionDate)); } if (0 != RemittanceInfo.CompareTo(other.RemittanceInfo)) { return(RemittanceInfo.CompareTo(other.RemittanceInfo)); } return(Transaction.CompareTo(other.Transaction)); }
public void TestGetBeneficiaryAccountById() { string filepath = "dummy_beneficiary_account.json"; string url = string.Format("{0}/{1}", beneficiaryAccountURL, BENEFICIARYACCOUNTID); Client client = new Client(ACCESSID, SECRETKEY, Helper.GetMockRequestFactory(filepath, url)); BeneficiaryAccount beneficiaryAccount = client.BeneficiaryAccount.Retrieve(BENEFICIARYACCOUNTID); string expectedJsonString = Helper.GetJsonString(filepath); Helper.AssertEntity(beneficiaryAccount, expectedJsonString); }
public void TestCreateBeneficiaryAccount() { string filepath = "dummy_beneficiary_account.json"; Client client = new Client(ACCESSID, SECRETKEY, Helper.GetMockRequestFactory(filepath, beneficiaryAccountURL)); IDictionary <string, object> options = new Dictionary <string, object> (); options.Add("name", "Bruce Wayne"); options.Add("beneficiary_name", "bene_test"); options.Add("ifsc", "IFSC0001890"); options.Add("bank_account_number", "50100000219"); options.Add("account_type", "Savings"); options.Add("email", "test@example,com"); options.Add("contact_no", "9876543210"); BeneficiaryAccount beneficiaryAccount = client.BeneficiaryAccount.Create(options); string expectedJsonString = Helper.GetJsonString(filepath); Helper.AssertEntity(beneficiaryAccount, expectedJsonString); }