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);
        }
예제 #3
0
        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()));
        }
예제 #4
0
        public void InvalidCurrencyCodeResultsInEmptyMerchantAccountID()
        {
            var merchantAccounts = new MerchantAccounts();

            merchantAccounts.Load("GBP", "CNWKRL2JZLMPL");

            var merchantAccountID = merchantAccounts.GetByCurrencyCode("INVALID");

            Assert.AreEqual(string.Empty, merchantAccountID);
        }
예제 #5
0
        public void MerchantAccountIDIsAccessibleByCurrencyCode()
        {
            var merchantAccounts = new MerchantAccounts();

            merchantAccounts.Load("GBP", "CNWKRL2JZLMPL");

            var merchantAccountID = merchantAccounts.GetByCurrencyCode("GBP");

            Assert.AreEqual("CNWKRL2JZLMPL", merchantAccountID);
        }