public void Setup() { // Skip the test if online certification tests aren't enabled. EnvironmentVariableTestFlags.RequirePreliveOnlineTestsEnabled(); // Create the configuration. var config = new Dictionary <string, string>(); config.Add("url", "https://payments.vantivprelive.com/vap/communicator/online"); config.Add("timeout", "20000"); config.Add("printxml", "true"); config.Add("logFile", null); config.Add("neuterAccountNums", null); config.Add("proxyHost", ""); config.Add("proxyPort", ""); config.Add("version", CnpVersion.CurrentCNPXMLVersion); // Create the CNP Online. this.cnpOnline = new CnpOnline(new ConfigManager(config)); }
public void SetUp() { EnvironmentVariableTestFlags.RequirePreliveOnlineTestsEnabled(); var existingConfig = new ConfigManager().getConfig(); Dictionary <string, string> config = new Dictionary <string, string>(); config.Add("url", "https://payments.vantivprelive.com/vap/communicator/online"); config.Add("reportGroup", "Default Report Group"); config.Add("username", existingConfig["username"]); config.Add("timeout", "20000"); config.Add("merchantId", existingConfig["merchantId"]); config.Add("password", existingConfig["password"]); config.Add("printxml", "true"); config.Add("logFile", null); config.Add("neuterAccountNums", null); config.Add("proxyHost", ""); config.Add("proxyPort", ""); ConfigManager configManager = new ConfigManager(config); cnp = new CnpOnline(configManager.getConfig()); }