public void InvalidCurrencyCodeResultsInEmptyMerchantAccountID() { var merchantAccounts = new MerchantAccounts(); merchantAccounts.Load("GBP", "CNWKRL2JZLMPL"); var merchantAccountID = merchantAccounts.GetByCurrencyCode("INVALID"); Assert.AreEqual(string.Empty, merchantAccountID); }
public void MerchantAccountIDIsAccessibleByCurrencyCode() { var merchantAccounts = new MerchantAccounts(); merchantAccounts.Load("GBP", "CNWKRL2JZLMPL"); var merchantAccountID = merchantAccounts.GetByCurrencyCode("GBP"); Assert.AreEqual("CNWKRL2JZLMPL", merchantAccountID); }
public ActionResult SavePIN(string AccountId, string NewPIN) { MerchantBLL ab = new MerchantBLL(); MerchantAccounts account = FiiiPayDB.MerchantAccountDb.GetById(AccountId); account.PIN = PasswordHasher.HashPassword(NewPIN); return(Json(ab.UpdatePIN(account, UserId, UserName).toJson())); }