/** * Construct a Litle online using the configuration specified in LitleSdkForNet.dll.config */ public LitleOnline() { config = new Dictionary<String, String>(); config["url"] = Properties.Settings.Default.url; config["reportGroup"] = Properties.Settings.Default.reportGroup; config["username"] = Properties.Settings.Default.username; config["printxml"] = Properties.Settings.Default.printxml; config["timeout"] = Properties.Settings.Default.timeout; config["proxyHost"] = Properties.Settings.Default.proxyHost; config["merchantId"] = Properties.Settings.Default.merchantId; config["password"] = Properties.Settings.Default.password; config["proxyPort"] = Properties.Settings.Default.proxyPort; communication = new Communications(); }
/** * Construct a Litle online using the configuration specified in LitleSdkForNet.dll.config */ public LitleOnline() { _config = new Dictionary<String, String>(); _config["url"] = Settings.Default.url; _config["reportGroup"] = Settings.Default.reportGroup; _config["username"] = Settings.Default.username; _config["printxml"] = Settings.Default.printxml; _config["timeout"] = Settings.Default.timeout; _config["proxyHost"] = Settings.Default.proxyHost; _config["merchantId"] = Settings.Default.merchantId; _config["password"] = Settings.Default.password; _config["proxyPort"] = Settings.Default.proxyPort; _config["logFile"] = Settings.Default.logFile; _config["neuterAccountNums"] = Settings.Default.neuterAccountNums; _communication = new Communications(); }
public void setCommunication(Communications communication) { this.communication = communication; }
/** * Construct a LitleOnline specifying the configuration in code. This should be used by integration that have another way * to specify their configuration settings or where different configurations are needed for different instances of LitleOnline. * * Properties that *must* be set are: * url (eg https://payments.litle.com/vap/communicator/online) * reportGroup (eg "Default Report Group") * username * merchantId * password * timeout (in seconds) * Optional properties are: * proxyHost * proxyPort * printxml (possible values "true" and "false" - defaults to false) */ public LitleOnline(Dictionary <String, String> config) { this.config = config; communication = new Communications(); }
/** * Construct a LitleOnline specifying the configuration in code. This should be used by integration that have another way * to specify their configuration settings or where different configurations are needed for different instances of LitleOnline. * * Properties that *must* be set are: * url (eg https://payments.litle.com/vap/communicator/online) * reportGroup (eg "Default Report Group") * username * merchantId * password * timeout (in seconds) * Optional properties are: * proxyHost * proxyPort * printxml (possible values "true" and "false" - defaults to false) */ public LitleOnline(Dictionary<String, String> config) { this.config = config; communication = new Communications(); }
public void SetCommunication(Communications communication) { _communication = communication; }
private void initializeRequest() { communication = new Communications(); authentication = new authentication(); authentication.user = config["username"]; authentication.password = config["password"]; requestDirectory = config["requestDirectory"] + "\\Requests\\"; responseDirectory = config["responseDirectory"] + "\\Responses\\"; litleXmlSerializer = new litleXmlSerializer(); litleTime = new litleTime(); litleFile = new litleFile(); }
/** * Construct a LitleOnline specifying the configuration in code. This should be used by integration that have another way * to specify their configuration settings or where different configurations are needed for different instances of LitleOnline. * * Properties that *must* be set are: * url (eg https://payments.litle.com/vap/communicator/online) * reportGroup (eg "Default Report Group") * username * merchantId * password * timeout (in seconds) * Optional properties are: * proxyHost * proxyPort * printxml (possible values "true" and "false" - defaults to false) */ public LitleOnline(IDictionary <string, StringBuilder> cache, Dictionary <string, string> config) { _cache = cache; this.config = config; communication = new Communications(_cache); }
/** * Construct a LitleOnline specifying the configuration in code. This should be used by integration that have another way * to specify their configuration settings or where different configurations are needed for different instances of LitleOnline. * * Properties that *must* be set are: * url (eg https://payments.litle.com/vap/communicator/online) * reportGroup (eg "Default Report Group") * username * merchantId * password * timeout (in seconds) * Optional properties are: * proxyHost * proxyPort * printxml (possible values "true" and "false" - defaults to false) */ public LitleOnline(IDictionary<string, StringBuilder> cache, Dictionary<string, string> config) { _cache = cache; this.config = config; communication = new Communications(_cache); }
public void SetUpLitle() { objectUnderTest = new Communications(); }