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