コード例 #1
0
        public void InvalidCurrencyCodeResultsInEmptyMerchantAccountID() {

            var merchantAccounts = new MerchantAccounts();
            merchantAccounts.Load("GBP", "CNWKRL2JZLMPL");

            var merchantAccountID = merchantAccounts.GetByCurrencyCode("INVALID");
            Assert.AreEqual(string.Empty, merchantAccountID);
        }
コード例 #2
0
        public void MerchantAccountIDIsAccessibleByCurrencyCode() {

            var merchantAccounts = new MerchantAccounts();
            merchantAccounts.Load("GBP", "CNWKRL2JZLMPL");

            var merchantAccountID = merchantAccounts.GetByCurrencyCode("GBP");
            Assert.AreEqual("CNWKRL2JZLMPL", merchantAccountID);
        }
コード例 #3
0
        public void InvalidCurrencyCodeResultsInEmptyMerchantAccountID()
        {
            var merchantAccounts = new MerchantAccounts();

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

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

            Assert.AreEqual(string.Empty, merchantAccountID);
        }
コード例 #4
0
        public void MerchantAccountIDIsAccessibleByCurrencyCode()
        {
            var merchantAccounts = new MerchantAccounts();

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

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

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