// fake credentials for tests public static SbbCredentials MakeDummyCredentials() { var res = new SbbCredentials(); res.SalesforceUrl = "https://test.salesforce.com/services/Soap/u/32.0"; res.SalesforceLogin = "******"; res.SalesforcePassword = "******"; return(res); }
private SbbCredentials GetTargetCredentials() { var targetCred = new SbbCredentials(); targetCred.SalesforceUrl = "https://test.salesforce.com/services/Soap/u/32.0"; targetCred.SalesforceLogin = uxTargetUsername.Text; targetCred.SalesforcePassword = uxTargetPassword.Text; return(targetCred); }
private SbbCredentials GetSourceCredentials() { var sourceCred = new SbbCredentials(); sourceCred.SalesforceUrl = "https://test.salesforce.com/services/Soap/u/32.0"; if (uxSourceUrl.SelectedItem != null && uxSourceUrl.SelectedItem.ToString().StartsWith("Live")) { sourceCred.SalesforceUrl = "https://login.salesforce.com/services/Soap/u/32.0"; } sourceCred.SalesforceLogin = uxSourceUsername.Text; sourceCred.SalesforcePassword = uxSourcePassword.Text; return(sourceCred); }
public SalesforceTasks(SbbCredentials cred) : this(new SalesforceSession(cred)) { }
public SalesforceSession(SbbCredentials cred) { _credentials = cred; // set up for TLS1.2 or TLS1.1 but not TLS1.0 System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; }