Used to override cert errors when running functional tests locally. Either option works on it's own, but both are included for convenience.
public SomeClassName() // Class Constructor
{
ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
}
[TestInitialize]
public void Setup()
{
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback( delegate
{
return true;
});
}