public void GetHtmlNoAcquirerIDTest() { IOptions options = new ThreeDSEligibleBrandsOptions(null, SupportedCards.VISA | SupportedCards.AMEX); string result = options.GetOptionString(); Assert.IsNull(result); }
public void GetHtmlTest() { IOptions options = new ThreeDSEligibleBrandsOptions("abc123", SupportedCards.VISA | SupportedCards.AMEX); string result = options.GetOptionString(); Assert.IsNotNull(result); Assert.IsTrue(result.Contains("\"threeDSEligibleBrands\":{")); Assert.IsTrue(result.Contains("\"acquirerId\":\"abc123\"")); Assert.IsTrue(result.Contains("\"cardBrands\":[\"VISA\",\"AMEX\"]")); }