public IEnumerable <EnvironmentVariable> GenerateEnvironmentVariables()
 {
     return(ProxyEnvironmentVariablesGenerator.GetProxyEnvironmentVariables(
                Host,
                Port,
                Username,
                Password
                ));
 }
        public IEnumerable <EnvironmentVariable> GenerateEnvironmentVariables()
        {
            return(SystemWebProxyRetriever.GetSystemWebProxy()
                   .SelectValueOr(
                       proxy =>
            {
                var proxyUri = proxy.GetProxy(TestUri);

                return ProxyEnvironmentVariablesGenerator.GetProxyEnvironmentVariables(
                    proxyUri.Host,
                    proxyUri.Port,
                    Username,
                    Password);
            },
                       Enumerable.Empty <EnvironmentVariable>()
                       ));
        }